{"id":18699079,"url":"https://github.com/ineat/spring-keycloak-tutorials","last_synced_at":"2025-04-12T08:08:46.159Z","repository":{"id":150255671,"uuid":"113377049","full_name":"ineat/spring-keycloak-tutorials","owner":"ineat","description":"A project sample to secure Spring Boot API with Keycloak :","archived":false,"fork":false,"pushed_at":"2021-03-19T16:40:23.000Z","size":91,"stargazers_count":9,"open_issues_count":0,"forks_count":13,"subscribers_count":7,"default_branch":"keycloak-12-x/springboot2.4.x","last_synced_at":"2025-04-12T08:06:05.518Z","etag":null,"topics":["ilab","ineat","keycloak","spring","spring-boot","tutorials"],"latest_commit_sha":null,"homepage":"https://blog.ineat-group.com/2017/12/securisez-vos-apis-spring-avec-keycloak-3-utilisation-des-connecteurs-spring-de-keycloak/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ineat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-06T23:09:13.000Z","updated_at":"2023-12-12T01:26:19.000Z","dependencies_parsed_at":"2023-05-06T00:36:03.442Z","dependency_job_id":null,"html_url":"https://github.com/ineat/spring-keycloak-tutorials","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ineat%2Fspring-keycloak-tutorials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ineat%2Fspring-keycloak-tutorials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ineat%2Fspring-keycloak-tutorials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ineat%2Fspring-keycloak-tutorials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ineat","download_url":"https://codeload.github.com/ineat/spring-keycloak-tutorials/tar.gz/refs/heads/keycloak-12-x/springboot2.4.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537138,"owners_count":21120709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ilab","ineat","keycloak","spring","spring-boot","tutorials"],"created_at":"2024-11-07T11:31:25.074Z","updated_at":"2025-04-12T08:08:46.149Z","avatar_url":"https://github.com/ineat.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring / Keycloak Tutorials\n\nThis is a sandbox / sample project to illustrate [this blog article](https://blog.ineat-group.com/2017/12/securisez-vos-apis-spring-avec-keycloak-3-utilisation-des-connecteurs-spring-de-keycloak/), part of our [Keycloak series](https://blog.ineat-group.com/tag/keycloak-series/).\n\n## Technologies\n\n* Java 11\n* JUnit 5\n* Spring Boot 2.4.2\n* Keycloak 12.0.2\n\n## Pre-requisites\n\n* Start your Keycloak server before running the app\n\u003e  👉 [How to install \u0026 start Keycloak](https://blog.ineat-group.com/2017/11/securisez-vos-apis-spring-avec-keycloak-1-installation-de-keycloak/)\n\n* Create a demo realm working with this app\n\n\u003e * Import the provided [realm-export.json](realm-export.json)\n\u003e * 👉 Or follow [How to create a realm for this sample project](https://blog.ineat-group.com/2017/11/securisez-vos-apis-spring-avec-keycloak-2-parametrage-dun-domaine-keycloak/)\n\n* Create 2 users\n    * One `ineat-admin` / `password`  with `ADMIN` role associated\n    * One `ineat-user` / `password` With `USER` role associated\n\n## How to start\n\n* For test :\n\n```shell\nmvn clean test\n```\n\n* To run the app :\n\n```shell\nmvn spring-boot:run\n```\n\n## How to test the Keycloak security\n\n* Use the provided [postman_collection_v2.json](postman_collection_v2.json)\n    * Generate an `access_token` thanks to the `KEYCLOAK  request TOKEN for USER` or `KEYCLOAK  request TOKEN for ADMIN`\n    * Use this `access_token` as `Bearer` to call the protected `/user` or `/admin` endpoints thanks to the `Request /user path` or `Request /admin path`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fineat%2Fspring-keycloak-tutorials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fineat%2Fspring-keycloak-tutorials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fineat%2Fspring-keycloak-tutorials/lists"}