2016-02-25 64 views
0

我正在使用SSOCircle並導入了我的元數據並執行了有效的重定向請求。我沒有在我的AuthnRequest(我是,但我糾正了這一點)任何錯誤。但是,當我執行重定向我收到錯誤:SAML SSO失敗 - 「原因:目標無效。」

Reason: Destination is invalid.

不知道我缺少什麼。

我Authn看起來是這樣的:

<samlp:AuthnRequest ID="_ID_" Version="2.0" IssueInstant="2016-02-25T16:20:04.869Z" Destination="http://localhost:9000/saml/service" ForceAuthn="false" IsPassive="false" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" AssertionConsumerServiceURL="http://localhost:9000/saml/assert" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"> 

    <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">MY_ISSUER_ID</saml:Issuer> 

    <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="_ID_"> 
     <Transforms> 
      <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /> 
      <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> 
      <InclusiveNamespaces PrefixList="#default samlp saml ds xs xsi" xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" /> 
      </Transform> 
     </Transforms> 
     <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
     <DigestValue>_DIGEST_</DigestValue> 
     </Reference> 
    </SignedInfo> 
    <SignatureValue>_SIGNATURE_VALUE_</SignatureValue> 
    <KeyInfo> 
     <X509Data> 
     <X509Certificate>_CERTIFICATE_STRING_</X509Certificate> 
     </X509Data> 
    </KeyInfo> 
    </Signature> 

    <samlp:NameIDPolicy Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" SPNameQualifier="MY_ISSUER_ID" AllowCreate="true" /> 

    <samlp:RequestedAuthnContext Comparison="exact"> 
    <saml:AuthnContextClassRef xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml:AuthnContextClassRef> 
    </samlp:RequestedAuthnContext> 

</samlp:AuthnRequest> 

我發送重定向到:

https://idp.ssocircle.com:443/sso/SSORedirect/metaAlias/ssocircle

我使用的庫是從ComponentPro(對此我有很幸福)。

回答