Required Action: getting AuthenticationFlowContext

Hi Dears, I need your advice on the following:

I have just created a custom required action (RA) and I need now to handle the AuthenticationFlowContext object (the custom RA implements as it needs the RequiredActionProvider). Question: is there he way to get it into the RA?

Required actions provide the RequiredActionContext which has most of the same things available as the AuthenticationFlowContext. Is there something missing from the RequiredActionContext that you need?

https://www.keycloak.org/docs-api/15.0/javadocs/org/keycloak/authentication/RequiredActionContext.html

you’re right, just checked, the RequiredActionContext can get all things I need. I thought it couldn’t, but paying more attention to that I found out it’s enough

1 Like