Getting github access token

Hi!

I am using GitHub as an external IDP for okta. I am able to authenticate users using OIDC, but how can I get the github access/refresh token?
I need them so I can make API calls in the name of the user.

You have a contradiction in terms :slight_smile: OIDC stands for “identity” and you are trying to obtain “access” token, which is a part of OAuth.

As far as I know, you can’t do that through Okta

You cannot get the Refresh token issued to Okta from the IdP (Github), but you can get their ID and Access Tokens: Get Social authentication tokens | Okta Developer