Reputation: 65
Using the ITFoxtec Identity SAML 2.0 component I am facing the "SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed" error. Once I read a token string in ReadClaimsIdentity. Please see attached image and link of the error.
https://i.sstatic.net/ZWAWH.png
Please revert me on the same as soon as possible.
Upvotes: 1
Views: 465
Reputation: 4334
The error cursor if the issuer configured in the application and the issuer for which the SAML 2.0 token is issued do not match.
TestWebAppCore in Startup.cs line 37 the AllowedAudienceUris is loaded from configuration:
saml2Configuration.AllowedAudienceUris.Add(saml2Configuration.Issuer);
Upvotes: 1