Identitätsattribute und SAML Assertion
Identitätsattribute
Bei einer erfolgreichen Authentisierung werden folgende Elemente in der Assertion als AttributeStatement übermittelt:
| Name | Attribut | Beschreibung |
|---|---|---|
| HIN-Login | X-HIN-LOGIN-NAME | Eindeutiger Schlüssel innerhalb der HIN Plattform |
| AGW Login | X-HIN-AGW-LOGIN-NAME | Identifikator des institutionellen Access Gateway (Device-ID) |
| Name | X-HIN-COMMON-NAME | Vorname & Nachname „Carl Muster“ (ohne Zweitname) |
| Vorname | X-HIN-GIVEN-NAME | „Carl“ |
| Zweitname | X-HIN-MIDDLE-NAME | „Max“ |
| Nachname | X-HIN-SURNAME | „Muster“ |
| Benutzertyp | X-HIN-USERTYPE | Art des Benutzers. Mögliche Werte: <leer>, Personal, Team, Device |
| Strasse | X-HIN-ADDRESS-1 | |
| Adresszeile 2 | X-HIN-ADDRESS-2 | |
| PLZ | X-HIN-POSTAL-CODE | |
| Ort | X-HIN-LOCATION | |
| Land | X-HIN-COUNTRY | Beispielsweise „CH“ |
X-HIN-MAIL | HIN-Mail-Adresse, über welche verschlüsselt Mails empfangen werden können | |
| GLN-Nr. Arzt | X-HIN-EAN-NO-MEDICAL | |
| FMH-Nr. Arzt | X-HIN-FMH-NO-MEDICAL | |
| GLN-Nr. Praxis | X-HIN-EAN-NO-OFFICE | |
| ZSR-Nr. Praxis | X-HIN-ZSR-NO-OFFICE | |
| Institutions Code | X-HIN-INSTITUTION-CODE | |
| Organisations-Typ | X-HIN-ORGANISATION-TYPE / X-HIN-ORGANIZATION-TYPE | Beide Schreibweisen aus historischen Gründen. Enthält numerischen Wert: 0 = Keine Firma, 1 = Firma allgemein, 10 = Arztpraxis, 11 = Spitex-Organisation, 12 = Physiotherapie-Praxis, 13 = Ergotherapie-Praxis, 14 = Ernährungsberatungs-Praxis, 15 = Psychologische Praxis, 16 = Zahnarztpraxis |
| Organisation | X-HIN-ORGANIZATION-ID | Organisations-ID des Benutzers innerhalb der HIN (z. B. M123456) |
| Organisation | X-HIN-ORGANIZATION | Name der Organisation des Benutzers |
| ASAS ID | X-HIN-ASAS-UserId | Ehem. Identifikator (abgelöst durch HIN-Login) |
| Härtungsgrad | X-HIN-HARDENCODE | BASIC, PLUS, EPDG |
| Personen Code | X-HIN-PERSON-CODE | Enthält numerischen Wert: -1 = Device, 0 = Keine Person, 1 = Person allgemein, 10 = Arzt, 11 = Pflegefachperson, 12 = Physiotherapeut, 13 = Ergotherapeut, 14 = Ernährungsberater, 15 = Psychotherapeut, 16 = Zahnarzt, 17 = Apotheker, 18 = Chiropraktiker, 19 = Hebamme, 20 = Komplementärmediziner, 21 = Sozialdienstmitarbeiter, 22 = Logopäde, 23 = Stillberaterin, 24 = andere Gesundheitsfachperson |
| Sprache | X-HIN-LANGUAGE | z. B. „DE“ |
| Test-Code | X-HIN-TEST-CODE | 0 = produktive ID, 1 = Test ID |
| Authentisierungsmethode | X-HIN-AUTH-METHOD | |
| Seriennummer | X-HIN-SERIAL_NUMBER | |
| Titel | X-HIN-TITEL | |
| Akademischer Titel | X-HIN-ACADEMICTITLE |
Wichtig: Eine Prüfung des
X-HIN-TEST-CODEist für produktive Applikationen zwingend notwendig, um nicht fälschlicherweise Test-IDs den Zugriff zu ermöglichen.
Beispiel einer SAML Assertion
<saml:Assertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion" ID="ID_f5e713c6-7677-4241-b8c7-13541f4873a6"
IssueInstant="2026-06-23T15:02:23.169Z" Version="2.0">
<saml:Issuer>https://broker.hin.ch/realms/HINBroker</saml:Issuer>
<dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
<dsig:SignedInfo>
<dsig:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<dsig:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
<dsig:Reference URI="#ID_f5e713c6-7677-4241-b8c7-13541f4873a6">
<dsig:Transforms>
<dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
<dsig:DigestValue>svxI9BStHonHW/kPkPe3VgyuQ40RivynWxV3BEsAbtk=</dsig:DigestValue>
</dsig:Reference>
</dsig:SignedInfo>
<dsig:SignatureValue>
aC...bws=
</dsig:SignatureValue>
<dsig:KeyInfo>
<dsig:X509Data>
<dsig:X509Certificate>
MII...Zs0=
</dsig:X509Certificate>
</dsig:X509Data>
</dsig:KeyInfo>
</dsig:Signature>
<saml:Subject>
<saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">60590</saml:NameID>
<saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
<saml:SubjectConfirmationData InResponseTo="hin-checker-ee1b8e5f-299c-4fa1-b7fb-279817cce388"
NotOnOrAfter="2026-06-23T15:07:21.169Z" Recipient="https://example.com/" />
</saml:SubjectConfirmation>
</saml:Subject>
<saml:Conditions NotBefore="2026-06-23T15:02:21.169Z" NotOnOrAfter="2026-06-23T15:03:21.169Z">
<saml:AudienceRestriction>
<saml:Audience>https://example.com/</saml:Audience>
</saml:AudienceRestriction>
</saml:Conditions>
<saml:AuthnStatement AuthnInstant="2026-06-23T15:02:23.170Z"
SessionIndex="DR59Sh7-HcmV-BcykcSMIT3Q::1a04a300-e512-4d31-a183-b893fefd97a3"
SessionNotOnOrAfter="2026-06-24T03:12:23.170Z">
<saml:AuthnContext>
<saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified
</saml:AuthnContextClassRef>
</saml:AuthnContext>
</saml:AuthnStatement>
<saml:AttributeStatement>
<saml:Attribute FriendlyName="X-HIN-POSTAL-CODE" Name="X-HIN-POSTAL-CODE"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">8304
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-ASAS-UserId" Name="X-HIN-ASAS-UserId"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">60590
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-SERIAL_NUMBER" Name="X-HIN-SERIAL_NUMBER"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string" />
</saml:Attribute>
<saml:Attribute FriendlyName="X-ASAS-UserId" Name="X-ASAS-UserId"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">60590
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-ADDRESS-2" Name="X-HIN-ADDRESS-2"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string" />
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-LANGUAGE" Name="X-HIN-LANGUAGE"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">de</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-ZSR-NO-OFFICE" Name="X-HIN-ZSR-NO-OFFICE"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string" />
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-HARDENCODE" Name="X-HIN-HARDENCODE"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">PLUS
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-ADDRESS-1" Name="X-HIN-ADDRESS-1"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Seidenstrasse 4
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-MIDDLE-NAME" Name="X-HIN-MIDDLE-NAME"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string" />
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-USERTYPE" Name="X-HIN-USERTYPE"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Personal
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-LOCATION" Name="X-HIN-LOCATION"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Wallisellen
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-INSTITUTION-CODE" Name="X-HIN-INSTITUTION-CODE"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">1</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-POSTALCODE" Name="X-HIN-POSTALCODE"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">8304
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-AUTH-METHOD" Name="X-HIN-AUTH-METHOD"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string" />
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-ORGANISATION-TYPE" Name="X-HIN-ORGANISATION-TYPE"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">
(115,2.16.756.5.30.1.165.1.3);(43741000,2.16.840.1.113883.6.96)</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-COUNTRY" Name="X-HIN-COUNTRY"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">ch</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-LOGIN-NAME" Name="X-HIN-LOGIN-NAME"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">montes1
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-FMH-NO-MEDICAL" Name="X-HIN-FMH-NO-MEDICAL"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string" />
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-EAN-NO-MEDICAL" Name="X-HIN-EAN-NO-MEDICAL"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">2000000010007
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-EAN-NO-OFFICE" Name="X-HIN-EAN-NO-OFFICE"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string" />
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-GIVEN-NAME" Name="X-HIN-GIVEN-NAME"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Monitoring
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-COMMON-NAME" Name="X-HIN-COMMON-NAME"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Monitoring Test1
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-PERSON-CODE" Name="X-HIN-PERSON-CODE"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">1</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-TEST-CODE" Name="X-HIN-TEST-CODE"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">1</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-ACADEMICTITLE" Name="X-HIN-ACADEMICTITLE"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string" />
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-ORGANIZATION-ID" Name="X-HIN-ORGANIZATION-ID"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">M00012810
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-ORGANIZATION" Name="X-HIN-ORGANIZATION"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Health Info Net AG
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-SURNAME" Name="X-HIN-SURNAME"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Test1
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-MAIL" Name="X-HIN-MAIL"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">
test-monitoring-test1@hin.ch</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute FriendlyName="X-HIN-TITEL" Name="X-HIN-TITEL"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string" />
</saml:Attribute>
<saml:Attribute Name="Role" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">manage-account
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="Role" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">manage-account-links
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="Role" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">uma_authorization
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="Role" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">offline_access
</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="Role" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">view-profile
</saml:AttributeValue>
</saml:Attribute>
</saml:AttributeStatement>
</saml:Assertion>