2021年3月30日星期二

How to obtain authenticator config in processAction method of a required action

How can I get the config of an authenticator in the processAction() method of a required action for it? I tried the following

public void processAction(RequiredActionContext context) { AuthenticationSessionModel authSession = context.getAuthenticationSession(); AuthenticatorConfigModel config = authSession.getRealm().getAuthenticatorConfigById("my-authenticator-id"); }

But config is null. I'm sure the id I am using is the same as the one returned by the authenticator's factory getId() method.

https://stackoverflow.com/questions/66881100/how-to-obtain-authenticator-config-in-processaction-method-of-a-required-action March 31, 2021 at 11:06AM

没有评论:

发表评论