Obtain Okta Token From User

I'd like to create an that obtains AWS temporary credentials on behalf of the logged in user. AWS provides AssumeRoleWithWebIdentity where I can supply an SSO token and receive temporary credentials to call AWS like S3.

How can I obtain the access token of the logged in user?

Hey @jovon! If the user has signed in with SSO, the access token is available on the current_user object in apps.

If you go to State => Globals => current_user:

You should see the token nested under the metadata property: