Hi,
I’m using Keycloak as an SSO provider, and have implemented a custom Authenticator for some custom authentication methods which work just fine.
However, I’m trying to add another authentication method which is via an external website (it works kind of like FB/Google social Identity Provider login; except it does not support OIDC) - it redirects you to an external page, you enter your credentials, and from there the user is redirected back to an endpoint in Keycloak with a payload that has the necessary user details.
For this redirect back from the external website, I have created a custom REST endpoint with RealmResourceProvider & RealmResourceProviderFactory. I am able to get the payload with user data, but in this endpoint (RealmResourceProvider), I am not able to authenticate the user in any way - there is no AuthenticationFlowContext. When the user is redirected back to Keycloak, a new KeycloakSession is also created so basically nothing about the initial request still exists for access…
So my question is basically if there is a way to create the AuthenticationFlowContext in a RealmResourceProvider? Or authenticate the user in any way in RealmResourceProvider? Or is there some other way to get a working auth flow going?