Add the line into start up class
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have registered an App on the portal.azure.com website. I downloaded the project that the site gives for the purpose of integration. After I've restored all the Nuget packages associated with this project, I am able to compile it.
However, when I attempt to sign in to the Azure AD, I get the following message.
Error: IDX10205: Issuer validation failed. Issuer: 'System.String'. Did not match: validationParameters.ValidIssuer: 'System.String' or validationParameters.ValidIssuers: 'System.String'.
I have tried to change the value of accessTokenAcceptedVersion from null to "2" and neither values seem to make a difference in the outcome. All I wish to do is have the user provide an access token granted by AzureAD before he can call into the WebAPI.
The project is being developed in ASP .NET and not ASP .NET core.
Add the line into start up class
Have you set ValidateIssuer
to false
in the OWIN startup class as shown in the documentation? Bear in mind that you would want to validate the issuer in a real application.
As I understood from the question that he wants to validate the issuer, I think you need to create an app in Azure AD for the website, and supply proper configuration parameters if they are missed.