Skip to content

Simple Keycloak authentication provider that links users logged in through an IdP with their Keycloak or Federated user automatically, without prompting.

License

Notifications You must be signed in to change notification settings

ohioit/keycloak-link-idp-with-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project unmaintained

NOTE: This is no longer required as it's included in KeyCloak by default as of 4.5.0. See here: https://issues.jboss.org/browse/KEYCLOAK-7270?_sscc=t. While 4.5.0 isn't out yet, the docs can be seen in this PR: keycloak/keycloak-documentation#435.

Keycloak: Link IdP Login with User Provider

When using an external identity provider, Keycloak will, by default, ask the user if they would like to link their IdP login with an existing account, if one exists. When the external identity provider is an enterprise SSO solution linked to an enterprise user directory with which Keycloak is federated, these additional prompts are undesirable and confusing to users. This small authentication provider can be dropped into a flow to automatically link an IdP login with an existing user, federated or otherwise, without prompting the user.

Usage

  1. Download a release jar or build with maven: mvn package.
  2. Drop the jar into one of the directories defined in the providers element of standalone/configuration/keycloak-server.json.
  3. Create or modify an Authentication flow to include the new Link IDP Login provider in the appropriate place.
  4. Modify an Identity Provider to use the above flow.

Example

Typically, you'll want a simple flow that starts with Create User if Unique and continues to Link IDP Login, both of which should be alternative.

Link IdP Login Example

License

About

Simple Keycloak authentication provider that links users logged in through an IdP with their Keycloak or Federated user automatically, without prompting.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages