@romain were you able to retrieve a token for external IDP? I’m trying to make it work its been few weeks and can’t get figure this out. Any chance we could confirm the steps I described here?
I was able to do all of the above steps successfully. However, when I make the API call: GET /auth/realms/{realm}/broker/{provider_alias}/token HTTP/1.1 Host: localhost:8080 Authorization: Bearer <KEYCLOAK ACCESS TOKEN>
Specifically I make the API call to Stackoverflow like so: /auth/realms/{realm}/broker/stackoverflow/token
I get the following response: access_token=5Gvj6ZAU5GhIs8o7tcAi5w))&expires=86400
I have the following question about what to do next:
What should I do with the access token?
Do I need to decrypt the access token? If so what encryption is being used to encrypt it, base64 or something else?
How do I see the details of the access token?
Do I need to make another Stackoverflow call or Keycloak API call to using this access token as is, to get the details?
Hey @polfilm, yes I was able to get the token back from the idp, I am using Okta and oidc.
Yet, some guidance on how to manage the list of idps shown to the user would be appreciated.
Different users would use different IdPs and I want to show only the relevant SSO CTA to the relevant user.