Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/spotlesscoder/keycloak-backend-to-backend-mcve

keycloak-backend-to-backend-mcve
https://github.com/spotlesscoder/keycloak-backend-to-backend-mcve

Last synced: about 2 months ago
JSON representation

keycloak-backend-to-backend-mcve

Awesome Lists containing this project

README

        

For stackoverflow

Reproduce:

1.) Run keycloak (docker-compose file in docker/ directory).

2.) Got to http://localhost:8080 in the browser. Login: admin/admin

3.) Create a new realm called "sampleapp".

4.) Import keycloak config (config/keycloak).

5.) Check backend-service1/main/resources/application.properties contains the correct public key from keycloak (obtain it from Realm Settings -> Keys -> Public Key).

6.) Run backend-service1.

7.) Check backend-service2/main/resources/application.properties contains the correct public key from keycloak and the correct client secret.

8.) Inside keycloak admin panel, go to clients -> backend-service2 -> Credentials Tab. Click Regenerate secret. Copy the secret and place it in backend-service2/main/resources/application.properties.

9.) Run backend-service2.