Hi @AKJ , The authority URL typically has the following format:
https://login.microsoftonline.com/{tenant-id}/v2.0
Replace {tenant-id}
with your Azure AD tenant ID.
It should look something like this:
.AddOpenIdConnect(options =>
{
options.SignInScheme = "Cookies";
options.Authority = "https://login.microsoftonline.com/{tenant-id}/v2.0";
options.RequireHttpsMetadata = true;
options.ClientId = "-your-clientid-";
options.ClientSecret = "-your-client-secret-from-user-secrets-or-keyvault";
options.ResponseType = "code";
options.UsePkce = true;
options.Scope.Add("profile");
options.SaveTokens = true;
});
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James