The goal is to try of Keycloak and implement a Demo for that.
It is a Keycloak server.
Database Configuration:
- Server: MS SQL
- Name: keycloak
- User: SA
- Password: SA_PASSWORD
Note: You can change configuration here.
To Run:
- Go to
bin
directory. - Execute
standalone.bat
orstandalone.sh
.
Keycloak available by http://localhost:8080/auth.
It is Java code (Adapters, Providers, Factories, etc) for integrate your own Application (Spring Boot or any Java-based) to Keycloak service.
How to Use:
- Go inside
keycloak-integration
folder. - Execute
gradlew jar
to build*.jar
file. - Copy
*.jar
file to../keycloak/standalone/deployements
to deploy your code.
Try to use an external database for Keycloak Service.
How to Use:
- Login as admin.
- Click on
User Federation
on left-side bar. - Choose
keycloak-user-storage-provider
from the select. - Setup MSSQL database settings (name, host, password, etc) and save.
- Click on
User
on left-side bar. - Try to create/update user.
KeycloakUserStorageProviderFactory
Spring Boot application with usage of external keycloak server.
Spring Boot application with usage of embedded keycloak server.
Based on: Keycloak Embedded in a Spring Boot Application tutorial.