Reputation: 4332
I have created a tenant in AzureAD.
I have the Directory ID in this format: xxxx-xxxx-xxxx-xxxx-xxxxx
I m using ADAL to communicate with AzureAD
Problem : How to create a correct URL for my tenant in AzureAD?
I must use this : https://login.microsoftonline.com/xxxx-xxxx-xxxx-xxxx-xxxxx
Say, this tenant is a paid acct. Do I use above format with ADAL?
Thanks
Upvotes: 2
Views: 10858
Reputation: 58981
You can either use the directory ID (as you already did) or the tenant name e. g.
https://login.microsoftonline.com/yourtenant.onmicrosoft.com
If you have a verfied domain the URL would look something like this: https://login.microsoftonline.com/yourtenant.com
However, you need to use the https://login.microsoftonline.com domain since its the IdP that handles the login.
Upvotes: 2