question

AbhijitShrikhande-6405 avatar image
0 Votes"
AbhijitShrikhande-6405 asked StanisawStpie-7045 commented

How do I secure a webapi?

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.

azure-ad-authenticationazure-webapps-apis
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm having the same problem, that message error with that example I have no idea what ii could be.... HELP!!!!

2 Votes 2 ·

Can you share the sample or steps followed to download the code?

0 Votes 0 ·

I have the same error message after setting up the Azure Active Directory and downloading the code sample from the Azure AD tutorial https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-aspnet-webapp

0 Votes 0 ·

0 Answers