teams-dev-samples
teams-dev-samples copied to clipboard
Improve documentation for App Registration regarding multi-tenant configuration
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

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'} }