You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keycloak "Continue with GitHub" – How to Access GitHub Access Token from Keycloak
#41183
I'm using Keycloak with the "Continue with GitHub" identity provider setup. The authentication flow works, and users can log in via GitHub. However, I need to retrieve the GitHub access token from Keycloak after successful login for further API interactions with GitHub (e.g., fetching user repositories).
I've tried configuring a mapper to extract access_token using the Social Profile JSON Field Path, but it's not included in the user’s token or attributes.
How can I expose or retrieve the GitHub access token after a user logs in via Keycloak?
Any guidance on the correct mapper setup or custom SPI would be appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I'm using Keycloak with the "Continue with GitHub" identity provider setup. The authentication flow works, and users can log in via GitHub. However, I need to retrieve the GitHub access token from Keycloak after successful login for further API interactions with GitHub (e.g., fetching user repositories).
I've tried configuring a mapper to extract access_token using the Social Profile JSON Field Path, but it's not included in the user’s token or attributes.
How can I expose or retrieve the GitHub access token after a user logs in via Keycloak?
Any guidance on the correct mapper setup or custom SPI would be appreciated.
Current custom mapper

All reactions