user736893
user736893

Reputation:

Microsoft Graph Toolkit: "Use a tenant-specific endpoint"

I'm following this: https://learn.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.

Upvotes: 0

Views: 640

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136296

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].

Upvotes: 1

Related Questions