I'm chasing, - MVC Exception Handler: IDX10214: Audience validation failed. Audiences: '[PII is hidden. For more details, see https this error, this error clearly states that Audience was not matched.
I verified that (IDP) client added correct audience information on their end.
To further debug, I want to print full incoming SamlResponse where I can see the incoming Audience info.
As per suggestion in this issue, https://github.com/Sustainsys/Saml2/issues/1030 we have our own implementation of GetExternalLoginInfoAsync. Mostly i'm interested to see Audience value incoming saml response
public override async Task<ExternalLoginInfo> GetExternalLoginInfoAsync(string expectedXsrf = null)
{
var auth = await Context.AuthenticateAsync(IdentityConstants.ExternalScheme);
string providerKey = auth.Principal.FindFirstValue(ClaimTypes.NameIdentifier);
// HERE I want to log full incoming SamlResponse
.....
return new ExternalLoginInfo(auth.Principal, "SAML", providerKey, "SAML")
{
AuthenticationTokens = auth.Properties.GetTokens(),
AuthenticationProperties = auth.Properties
};
}
I'm chasing,
- MVC Exception Handler: IDX10214: Audience validation failed. Audiences: '[PII is hidden. For more details, see https
this error, this error clearly states that Audience was not matched.I verified that (IDP) client added correct audience information on their end.
To further debug, I want to print full incoming SamlResponse where I can see the incoming Audience info.
As per suggestion in this issue, https://github.com/Sustainsys/Saml2/issues/1030 we have our own implementation of GetExternalLoginInfoAsync. Mostly i'm interested to see Audience value incoming saml response