https://github.com/ricardobaumann/resource-server
Spring boot keycloak resource service
https://github.com/ricardobaumann/resource-server
jwt jwt-authentication keycloak spring-boot
Last synced: 3 months ago
JSON representation
Spring boot keycloak resource service
- Host: GitHub
- URL: https://github.com/ricardobaumann/resource-server
- Owner: ricardobaumann
- Created: 2022-05-25T14:50:17.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-27T13:33:03.000Z (about 4 years ago)
- Last Synced: 2025-03-22T00:29:11.625Z (over 1 year ago)
- Topics: jwt, jwt-authentication, keycloak, spring-boot
- Language: Java
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Keycloak-powered backend resource service
This service demonstrates how to configure a spring boot backend as a resource service, backed by keycloak as identity
and authentication provider.
### Usage
- To start keycloak, run the docker-compose file on the root folder:
`docker-compose up`
- Start the application from your IDE or command line with
`./gradlew bootRun`
- Get the jwt token from keycloak running:
`./get_token.sh`
- Call the service endpoint with the jwt token, using
`./test_curl.sh`
Do not forget to update the Bearer token on the curl command.