Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/spotlesscoder/keycloak-backend-to-backend-mcve
- Owner: spotlesscoder
- License: other
- Created: 2019-02-21T18:43:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-30T08:59:46.000Z (almost 5 years ago)
- Last Synced: 2024-10-13T10:31:49.762Z (3 months ago)
- Language: Java
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.