Get the SSO OAuth2 access token from within an app

Hello. Our self-hosted Retool instances use SSO OAuth2. Apps can access claim data from the user's access token (via current_user.metadata), but I don't see a way for apps to get access to the access token itself.

We are embedding an iframe into one of our apps, and we need to pass the access token into it, otherwise the embedded site will have no auth context. How can we do this? Thank you.

Hi @aivajoe thanks for reaching out! Apologies that this hasn't gotten an answer yet

We may need to get some details about your specific set up. What provider are you using? I believe you should have access to {{current_user.metadata.accessToken}} (Configure SSO with OIDC authentication | Retool Docs)