I was able to retrieve the external IdP Token of Stackoverflow and GitHub 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?
Any help would be much appreciated.
Thank you.