Skip to content

This project teachs how to implement(add) custom identity provider to Keycloak via Java code.

Notifications You must be signed in to change notification settings

thesardorbroo/oneid-keycloak-idp

Repository files navigation

😎 Implementing custom Keycloak identity provider via Java code

Quick start

1. Set credentials

We should override CLIENT_ID and CLIENT_SECRET variables. These variables are located in src/main/java/uz/sardorbroo/keycloak/authenticator/OneIdProviderConfig.

2. Build the .jar

./mvnw clean package

3. Copy the .jar

Copy the .jar(target/*.jar) to keycloak-properties/custom-idp-properties

4. Build Keycloak container

Run the keycloak.yml file. Or run the command.

docker compose -f keycloak.yml up

5. Verify

We can check all steps via browser. Follow the link http://localhost:9080/realms/oneid-realm/account/

img.png

Click the Sign in button.

img.png

Click the oneid button.

🥳 I congratulate you, you have Keycloak app which is integrated to OneID.uz

About

This project teachs how to implement(add) custom identity provider to Keycloak via Java code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages