I’m trying to create a new idp for my purposes.
I created all, it get shown on “identity providers” and i can enable it, so on login screen i see my new Idp.
I implemented “performLogin” to do a redirect to my service, then my service redirect back to keycloak with some query data that i will read on “callback” implemented as “Endpoint”.
I can get all i need from “callback”, i can create a new user from that, assign a role etc
What i’m missing is to authenticate the user:
session.getContext().getAuthenticationSession() // it's empty
callback.getAndVerifyAuthenticationSession() // I'm unable to make it work
Some help?
Seems like i have to return a “BrokeredIdentityContext identity” in “return callback.authenticated(identity)” after set an AuthenticationSessionModel.