Error “WIF10201: No valid key mapping found” when trying to create claims from SAML

后端 未结 3 722
野的像风
野的像风 2021-01-25 05:50

I am trying to validate a SAML response which is coming from Siteminder IDP from a third party. I have installed the certificate provided by them. When I call the Valida

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-25 06:38

    Ok found the solution but could't quite understand the readon behind it (complete noob, will update the answer when I know more).

    Followed this approach of converting the SAML2 response to WSFed response, then on that new token I ran my code, now the error is gone.

    http://blogs.msdn.com/b/bradleycotier/archive/2012/10/28/saml-2-0-tokens-and-wif-bridging-the-divide.aspx

    Note : you still have to override the validate token method (which I had originally done) to avoid the following error :

    “ID4154: A Saml2SecurityToken cannot be created from the Saml2Assertion because it contains a SubjectConfirmationData which specifies an InResponseTo value. Enforcement of this value is not supported by default. To customize SubjectConfirmationData processing, extend Saml2SecurityTokenHandler and override ValidateConfirmationData.”
    

    Thanks.

提交回复
热议问题