Skip to content

Alternative Username/Password Forms for keycloak.Validate the user's credentials and execute accordingly the flow..

License

Notifications You must be signed in to change notification settings

hatemzidi/keycloak-custom-authenticator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alternative-usernamepasswordform-authenticator

this custom authenticator implementation extends the original Username Password Form execuation flow in Keycloak.
It adds 'Alternative' to the original one and doesn't stop the execution flow if the user is not valid.

It can be helpful in case of automatically redirecting to another provider if the user isn't valid in the default one.
If it's marked as 'Required', the extension will behave as the original one : stopping the flow and raising the error message.

Alternative-usernameform-authenticator

this custom authenticator implementation extends the original Username Form execuation flow in Keycloak.
It allows to validate a user but doesn't stop the execution flow if the user is not valid. Best used with conditional flows in case of extra actions needed when a user doesn't exist.

Deployment

mvn clean package
cp target/*.jar $KEYCLOAK_HOME/standalone/deployments/

Keycloak Configuration

alternative username password form

  1. Go to Authentication menu
  2. Create or edit a custom flow
  3. Add execution
  4. Pick up from the list the Alternative Username Password Form

A flow example : Alternative Username Password Flow

alternative username form

  1. Go to Authentication menu
  2. Create or edit a custom flow
  3. Add execution
  4. Pick up from the list the Alternative Username Form

A flow example : Alternative Username Flow

About

Alternative Username/Password Forms for keycloak.Validate the user's credentials and execute accordingly the flow..

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages