-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
# keycloak-validate-otp-conditional | ||
|
||
This plugin brings Conditional OTP to the Direct Grant. | ||
|
||
Mix between native plugins: | ||
- https://github.com/keycloak/keycloak/blob/bfce612641a70e106b20b136431f0e4046b5c37f/services/src/main/java/org/keycloak/authentication/authenticators/directgrant/ValidateOTP.java | ||
- https://github.com/keycloak/keycloak/blob/bfce612641a70e106b20b136431f0e4046b5c37f/services/src/main/java/org/keycloak/authentication/authenticators/browser/ConditionalOtpFormAuthenticator.java | ||
|
||
Inspired by: https://github.com/lukaszbudnik/keycloak-ip-authenticator | ||
|
||
Use case: | ||
|
||
- When IP whitelisting passes, set user attribute: `ip_based_otp_conditional=skip` else`ip_based_otp_conditional=force` | ||
- Configure this module to be conditional on this user attribute (OTP control User Attribute) | ||
|
||
Also see our extended version of [keycloak-ip-authenticator](https://github.com/Nextpertise/keycloak-ip-authenticator). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters