I'm following this: https://docs.microsoft.com/en-us/graph/toolkit/get-started/build-a-web-app
As expected, my code is very simple. I have the script reference, the mgt-msal2-provider
element with my client-id specified, and a simple login <mgt-login></mgt-login>
.
IF I set up my app in the Azure portal to be "multitenant", everything works. However, I do not want this publicly available. How do I specify a tenant using the simple methods above? I found questions that talk about specifying a tenant, but I don't know how to specify it since I'm not using any javascript.
CodePudding user response:
Based on the documentation provided here
, please try by adding authority
attribute to mgt-msal2-provider
and set its value to https://login.microsoftonline.com/[your-tenant-id]
.