-
Notifications
You must be signed in to change notification settings - Fork 28
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
Improve loading configs #24
Comments
It may be possible to set custom realm attributes with the kcadm.sh tool: kcadm.sh update -r myrealm -s sms-2fa-default-api-provider=sms-2fa-foobar if that does not work, it would be possible to set this manually in the database in the INSERT INTO realm_attribute (realm_id, name, value) VALUES ('REALM_UUID', 'sms-2fa-default-api-provider', 'sms-2fa-foobar'); |
Each RequiredActionFactory and AuthenticatorFactory overrides this method:
|
Passing configs to spi providers actually works like this:
Downside is, that we have many configs to pass. |
I guess there must be a way to put everything into one config file? That would be a nice solution. Then we can remove the config from the single authentication flows. The current solution feels a bit hacky. There is a discussion about configuring providers: keycloak/keycloak#10311 |
In the moment the custom required actions assume there exists an authenticator config object with the alias "sms-2fa".
Instead of loading the config by this predefined alias it should be loaded either from the database (with arbitrary alias) or loaded from keycloaks globale settings (see #20 (comment) and following)
The text was updated successfully, but these errors were encountered: