Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AuthnRequest (EPD)

Der AuthnRequest wird mittels Browser des Kunden an die HIN Plattform übermittelt. Um den Aussteller des Requests prüfen zu können, muss dieser entsprechend signiert werden (siehe Zertifikate). Das Zertifikat sowie der genutzte Issuer muss dazu von HIN auf der Plattform hinterlegt werdem.

Das folgende Beispiel zeigt einen AuthnRequests:

<samlp:AuthnRequest xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
    xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
    xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
    AssertionConsumerServiceURL="https://example.com/"
    Destination="https://idp.id.hin.ch/auth/realms/hinid-dev/protocol/saml"
    ID="hin-checker-36fe7b82-3623-4855-b2e1-5bf2242980ec" IssueInstant="2026-06-29T14:21:00Z"
    ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Version="2.0"
    forceAuthn="false">
    <saml:Issuer>https://example.com/</saml:Issuer>
    <ds:Signature>
        <ds:SignedInfo>
            <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
            <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
            <ds:Reference URI="#hin-checker-36fe7b82-3623-4855-b2e1-5bf2242980ec">
                <ds:Transforms>
                    <ds:Transform
                        Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
                    <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
                </ds:Transforms>
                <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
                <ds:DigestValue>7opDe/7W3BydLqwV1Q5DDBQTCAAwT+D1qaetlyr7/w8=</ds:DigestValue>
            </ds:Reference>
        </ds:SignedInfo>
        <ds:SignatureValue>
            dmU6...Mc=
        </ds:SignatureValue>
        <ds:KeyInfo>
            <ds:X509Data>
                <ds:X509Certificate>
                    MIIFUD...bXs6pZl3=
                </ds:X509Certificate>
            </ds:X509Data>
        </ds:KeyInfo>
    </ds:Signature>
    <samlp:NameIDPolicy AllowCreate="true"
        Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" />
    <samlp:RequestedAuthnContext Comparison="exact">
        <saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml:AuthnContextClassRef>
    </samlp:RequestedAuthnContext>
</samlp:AuthnRequest>