简体   繁体   English

SAML断言响应

[英]SAML Assertion response

I am working on idp-initiated authentication. 我正在研究由IDP启动的身份验证。 I have created a response to be sent to SalesForce but stuck at one point. 我创建了一个要发送到SalesForce的响应,但停留在一点。 See the XML code below. 请参阅下面的XML代码。 Tell me from where I can get values to be fill in these tags. 告诉我从哪里可以获取要填充这些标签的值。

<SignatureValue>, <X509Certificate> and <DigestMethod> <SignatureValue>, <X509Certificate><DigestMethod>

XML CODE: This is the part of SAMLAssertion that IDP posts to SP for authentication. XML代码:这是IDP发布到SP进行身份验证的SAMLAssertion的一部分。

<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
    <SignedInfo>
        <CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
        <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
        <Reference URI="#s2541b842781b7edbe3b3077bf7d11bae88eaa73e7">
            <Transforms>
                <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
                <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
            </Transforms>
            <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
            <DigestValue>MnTEd3S3uu7MvGAFE5iB8DEhr9U=</DigestValue>
        </Reference>
    </SignedInfo>
    <SignatureValue>Jf/FNn5309vTWMKJ1o5sdMV/tY/Y+LV3F2eK4+LaIlmKYUHPInX4h+mUg3ef3IXTJ16aYu0A7aRK dHMc3UDF5BlMvfOEpGMEdARQY0O+VzkLJjZMDKG3DlSpfcVZrw/rm4wlZ6oYwhZEOhS0Gi3OOoeR jQn1ONABsfiprr1BYYo=</SignatureValue>
    <KeyInfo>
        <X509Data>
            <X509Certificate>MIIEijCCA/OgAwIBAgIQPn+ClEjH2V3Jynt7u3v+XzANBgkqhkiG9w0BAQUFADCBujEfMB0 GA1UEChMWVmVyaVNpZ24gVoycE7oe0xvQEad1Hs6xHCRDbJVIr4=</X509Certificate>
        </X509Data>
    </KeyInfo>
</Signature>

Check that the certificate 'hard-coded' into the assertion is that same as the certificate imported into SalesForce.com. 检查“硬编码”到断言中的证书是否与导入到SalesForce.com的证书相同。 The above message would suggest that this is NOT the case. 上面的消息表明情况并非如此。

Make sure that you are using proper classes in order make signature for response. 确保使用正确的类以使响应签名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM