Repository navigation
Replies: 2 comments 1 reply
|
the quarkus config follows dashed naming conventions even when the original providers didn't. Try |
|
Thanks @kareemserry for you response, i tried with below build command: But still i get the NPE when KC tries to get protector from context. 2022-04-07 22:27:08,657 WARN [org.keycloak.services] (executor-thread-3) KC-SERVICES0013: Failed authentication: java.lang.NullPointerException |
Uh oh!
There was an error while loading. Please reload this page.
In our keycloak setup we are using a custom BruteForceDetector provider extending DefaultBruteForceDetector. In Wildfly based setup we register the same using below configuration :
sci-default-brute-force-detector
for quarkus distribution i tried registering the same adding below property in keycloak.conf
(sci-custom-bruteforce.jar is name of jar file in providers dir)
spi-bruteForceProtector-provider=sci-custom-bruteforce
When i try to login with this configuration i get an NPE:
2022-04-07 09:23:44,575 WARN [org.keycloak.services] (executor-thread-5) KC-SERVICES0013: Failed authentication: java.lang.NullPointerException
at org.keycloak.authentication.authenticators.util.AuthenticatorUtils.getDisabledByBruteForceEventError(AuthenticatorUtils.java:32)
at org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator.isDisabledByBruteForce(AbstractUsernameFormAuthenticator.java:261)
at org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator.validatePassword(AbstractUsernameFormAuthenticator.java:227)
at org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator.validateUserAndPassword(AbstractUsernameFormAuthenticator.java:150)
at org.keycloak.authentication.authenticators.browser.UsernamePasswordForm.validateForm(UsernamePasswordForm.java:55)
at org.keycloak.authentication.authenticators.browser.UsernamePasswordForm.action(UsernamePasswordForm.java:48)
at org.keycloak.authentication.DefaultAuthenticationFlow.processAction(DefaultAuthenticationFlow.java:162)
at org.keycloak.authentication.AuthenticationProcessor.authenticationAction(AuthenticationProcessor.java:1002)
at org.keycloak.services.resources.LoginActionsService.processFlow(LoginActionsService.java:321)
at org.keycloak.services.resources.LoginActionsService.processAuthentication(LoginActionsService.java:292)
at org.keycloak.services.resources.LoginActionsService.authenticate(LoginActionsService.java:276)
at org.keycloak.services.resources.LoginActionsService.authenticateForm(LoginActionsService.java:349)
Any suggestions here ?
All reactions