8000 GitHub - al-cheb/multifactor-keycloak-plugin: Keycloak plugin for multifactor authentication
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

al-cheb/multifactor-keycloak-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multifactor-keycloak-plugin

Attention: The current version of the plugin only works with Keycloak, starting from version 23.0.1

Authentication execution plugin for Keycloak that adds MultiFactor into the authentication flow. Component uses Keycloak Service Provider Interface (SPI) to show user a MultiFactor iframe upon completion of primary authentication.

Build

Modify keycloak.version in pom.xml to match to your specific Keycloak version (currently, version 22.0.1 is used), then build the component:

$ mvn clean install

Install

$ cp <keycloack dir>/target/keycloak-multifactor-spi-jar-with-dependencies.jar <keycloack dir>/providers
# run kc.bat build or kc.sh build from <keycloack dir>/bin
# restart keycloak

Configure

  1. In MultiFactor administration console, add new "Website" resource. Use JwtHS256 access token format;

  2. In KeyCloak "Realm Settings" -> "Security Defenses" -> "Content-Security-Policy" add MultiFactor as a trusted frame-able source: frame-src https://*.multifactor.ru/ 'self';

  3. In KeyCloak "Authentication" -> "Flow" select "Browser" click "Action->Duplicate";

  4. In KeyCloak "Authentication" -> "Flow" select "Copy of browser" and click "Add step" to "Copy of browser forms" and select Multifactor(Attention: "Multifactor" must be after "Username Password Form");

  5. Press "Settings" for "Multifactor" and enter the following values:

  1. Select REQUIRED under the Requirement column for "Multifactor". Save your configuration;

  2. In your Keycloak client's settings, in the "Advanced" -> "Authentication Flow Overrides" section, bind your "Copy of browser" to the Browser Flow. Alternatively, you can bind new flow globally: In "Authentication" -> "Flow" select "Copy of browser" and click "Action->Bind flow".

About

Keycloak plugin for multifactor authentication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 68.2%
  • JavaScript 27.8%
  • FreeMarker 4.0%
0