Skip to content

ashchitlyak-sc/keycloak-demo

Repository files navigation

Keycloak Demo

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:

  1. Go to bin directory.
  2. Execute standalone.bat or standalone.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:

  1. Go inside keycloak-integration folder.
  2. Execute gradlew jar to build *.jar file.
  3. Copy *.jar file to ../keycloak/standalone/deployements to deploy your code.

User Storage

Try to use an external database for Keycloak Service.

How to Use:

  1. Login as admin.
  2. Click on User Federation on left-side bar.
  3. Choose keycloak-user-storage-provider from the select.
  4. Setup MSSQL database settings (name, host, password, etc) and save.
  5. Click on User on left-side bar.
  6. Try to create/update user.

KeycloakUserStorageProvider

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published