Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用.NET解码并检查SAML 1.1签名_C#_.net_Saml - Fatal编程技术网

C# 使用.NET解码并检查SAML 1.1签名

C# 使用.NET解码并检查SAML 1.1签名,c#,.net,saml,C#,.net,Saml,我用这样的东西来验证我的SAML1.1,它正在工作 但是我可以看到framework.NET中有一些类似乎在谈论SAML 但我无法使用某些东西 我的分层点是如下所示的XML: <samlp:Response ResponseID="xxx" MajorVersion="1" MinorVersion="1" IssueInstant="..." Recipient="xxx" xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol">

我用这样的东西来验证我的SAML1.1,它正在工作

但是我可以看到framework.NET中有一些类似乎在谈论SAML 但我无法使用某些东西

我的分层点是如下所示的XML:

<samlp:Response ResponseID="xxx" MajorVersion="1" MinorVersion="1" IssueInstant="..." Recipient="xxx" xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol">
    <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
        [...]
        <ds:SignatureValue>xxx</ds:SignatureValue>
    </ds:Signature>
    <samlp:Status>
        <samlp:StatusCode Value="samlp:Success"/>
    </samlp:Status>
    <saml:Assertion MajorVersion="1" MinorVersion="1" AssertionID="xxx" IssueInstant="..." Issuer="xxx" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion">
        <saml:Conditions NotBefore="..." NotOnOrAfter="..."/>
        <saml:AuthenticationStatement AuthenticationInstant="..." AuthenticationMethod="...">
            <saml:Subject>
                <saml:NameIdentifier Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">xxx</saml:NameIdentifier>
                <saml:SubjectConfirmation>
                    <saml:ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:...</saml:ConfirmationMethod>
                </saml:SubjectConfirmation>
            </saml:Subject>
        </saml:AuthenticationStatement>
    </saml:Assertion>
</samlp:Response>

[...]
xxx
xxx
urn:oasis:name:tc:SAML:1.0:。。。
有什么建议吗


提前谢谢

你有什么问题?你们想达到什么目的?为什么失败?我想使用内置的核心对象,它似乎就是为了达到这个目的