teams-dev-samples icon indicating copy to clipboard operation
teams-dev-samples copied to clipboard

Improve documentation for App Registration regarding multi-tenant configuration

Open serverless-me opened this issue 5 years ago • 0 comments

Sample

tab-aad-msal2

Authors

@BobGerman

Suggestion (the more details, the better)

App Registration

Please add the following detail to the documentation

  • SPA Redirect URI (not Web Redirect URI)
  • no implicit grant
  • optional: select the multi-tenant option

SPA-MSAL-Config

Code Changes

For the multi-tenant configuration, the following changes are required:

  • use the common endpoint in the Config.js instead of the tenant ID export const authority = "https://login.microsoftonline.com/common";

  • to the request I added the extraQueryParameters: {domain_hint: 'organizations'} this.request = { scopes: ["user.read"], extraQueryParameters: {domain_hint: 'organizations'} }

serverless-me avatar Dec 01 '20 17:12 serverless-me