panva / openid-client

OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
MIT License
1.83k stars 392 forks source link

I like to fetch multiple access tokens for multiple resources provided by my Identity Provider #297

Closed ktikku closed 4 years ago

ktikku commented 4 years ago

I'm using openid-client package to perform OIDC authentication with Azure AD. Azure AD provides multiple access tokens for multiple resources (like Microsoft Graph: https://graph.microsoft.com Microsoft 365 Mail API: https://outlook.office.com) How can I fetch and maintain multiple access tokens via openid-client package?

panva commented 4 years ago

@ktikku that's a question of when and what parameters to include to the basic protocol requests. I am unable to tell you the specifics for AAD.