AzureADQuickStarts / B2C-GraphAPI-DotNet

A sample application that shows how to call the Azure AD Graph API for an Azure AD B2C directory.
59 stars 42 forks source link

Does not work if authority is changed to *.b2clogin.com #19

Closed kaushikgayal closed 1 year ago

kaushikgayal commented 5 years ago

It works perfectly fine with authority as login.microsoftonline.com but when authority is changed to b2clogin.com. It throws an exception. I tried upgrading AD nuget to the latest version 5.1 and also updated code to set Validate Authority to false. Still fails.

Visinghr commented 2 years ago

@kaushikgayal it is not needed to use b2clogin.com domain because this is sample, we have used the client credentials flow, which is inherited capability of the enterprise tenant. I think, you are worried about deprecated of login.microsoft.com domain for b2c Tenant, flow in this sample is not going to be affected. ref this - https://docs.microsoft.com/en-us/azure/active-directory-b2c/b2clogin#endpoints-that-are-not-affected

derisen commented 1 year ago

Closing as we are archiving this repo. Please refer to instead: Azure AD B2C user account management with .NET Core and Microsoft Graph