An open API service indexing awesome lists of open source software.

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

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.