microsoftgraph / microsoft-graph-toolkit

Authentication Providers and UI components for Microsoft Graph 🦒
https://docs.microsoft.com/graph/toolkit/overview
Other
944 stars 303 forks source link

[BUG] MSAL2Teams provider custom scope #1522

Closed vogtn closed 1 year ago

vogtn commented 2 years ago

Describe the bug Placeholder issue to help for issue with permissions, custom api usage

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

ghost commented 2 years ago

Hello vogtn, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

ARsquare commented 2 years ago

Bug Not able to get the access token for scope with permission to custom service API.

Environment OS: macOS, windows Browser: chrome, edge Framework: react Context: Microsoft Teams Provider: MSAL2Teams provider

Sample permission: api://bc8d95c2-812e-4b1a-affc-c329d23f5809/access_as_user

I can see the permission in the consent screen (the 1st permission), but the access token that I get is not containing this permission in it's scope.

Screenshot 2022-02-09 at 10 24 16 AM
vogtn commented 2 years ago

More context: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow#:~:text=and%20combined%20consent-,The%20middle%20tier%20application,-adds%20the%20client

Trying to enable this scenario

gavinbarron commented 1 year ago

Closed as this provider is deprecated