[keycloak-user] Disable 'secret question credentials' fails

BlackBellamy blackbellamy at posteo.de
Wed Feb 7 05:42:13 EST 2018


Hey all,

I'm having troubles with the custom authenticator example 'Secret
Question'. Setup and workflow works fine, but I cannot disable the
credential type for the users once set up. On a users credentials tab I
select 'SECRET_QUESTION' and try to disable it, but it throws the
following Error: Failed to disable credentials. The wildfly log states a
stack overflow:

Uncaught server error: java.lang.StackOverflowError
	at java.util.AbstractCollection.toArray(AbstractCollection.java:136)
	at java.util.LinkedList.addAll(LinkedList.java:408)
	at java.util.LinkedList.addAll(LinkedList.java:387)
	at
org.keycloak.services.DefaultKeycloakSessionFactory.getProviderFactories(DefaultKeycloakSessionFactory.java:338)
	at
org.keycloak.credential.UserCredentialStoreManager.getCredentialProviders(UserCredentialStoreManager.java:151)
	at
org.keycloak.credential.UserCredentialStoreManager.disableCredentialType(UserCredentialStoreManager.java:214)
	at
org.keycloak.examples.authenticator.SecretQuestionCredentialProvider.disableCredentialType(SecretQuestionCredentialProvider.java:88)

and is repeating from then on. I've created a JIRA ticket that seems to
be unnoticed so far

https://issues.jboss.org/browse/KEYCLOAK-6308

I built a phone TAN authenticator using it as reference and there I am
facing the same problem. I would like to share it as soon as I finish
development. I don't know if it is caused by a misconfigured
authenticator example or by keycloak itself, but I guess it is Keycloak.

Any help is appreciated. Thanks,

Benno


More information about the keycloak-user mailing list