-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new authenticator required action #16
Conversation
…s-token instead of logs
…ernal dependencies.
…d-new-authenticator-required-action
…d-new-authenticator-required-action # Conflicts: # pom.xml
@sventorben please take a look. I added some documentation. |
@@ -0,0 +1,19 @@ | |||
# Authenticator-Required-Action | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should add a general description of what problem or use case this authenticator is good for. Just starting with an example out of context does not really help to understand what it is doing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check if that is sufficent.
...t/java/de/conciso/keycloak/authentication/required_action/RequiredActionAuthenticatorIT.java
Outdated
Show resolved
Hide resolved
|
||
@Override | ||
public void authenticate(AuthenticationFlowContext context) { | ||
context.getUser().addRequiredAction( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good if we could make this more robust to configuration errors, e.g. what if no authenticator config exists, or what if the key is not present in the config, or the configured required action does not exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will look into it.
@sventorben please take a look again. |
Added Authenticator that sets a specific RequiredAction for the authenticating User