OfficeDev / Office-Add-in-samples

Code samples for Office Add-in development on the Microsoft 365 platform.
MIT License
671 stars 756 forks source link

Fix check for "access_as_user" in NodeJS SSO example #757

Closed Davidihl closed 2 months ago

Davidihl commented 2 months ago

since tokenScopes returns "access_as_users", this checks will always fail since they are looking for "access_as_user".

Q A
Bug fix? yes
New feature? no - yes?
New sample? no - yes?
Related issues?

What's in this Pull Request?

Fixed the check provided in the complete directory.

Guidance

Refering to Create a Node.js Office Add-in that uses single sign-on Since const tokenScopes returns "access_as_users", the checks in Create the route and implement On-Behalf-Of flow | TODO 10 would always fail.

Davidihl commented 2 months ago

Error on my side, configuring the App in Azure