Git Product home page Git Product logo

keycloak-custom-authenticator's Introduction

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

keycloak-custom-authenticator's People

Contributors

hatemzidi avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

davidvogel94

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.