Formålet med dette dokument er at give en detaljeret beskrivelse af de konkrete services, som STS udbyder i forbindelse med anvendelsesområdet SCBST omveksling.
Her veksles et Service Consumer Bootstrap token (SCBST) med et indlejret NemLog-in Identity token til en OIO IDWS sikkerhedsbillet, som kan anvendes inden for sundhedsdomænet.
Dokumentet henvender sig primært til udviklere af NSP-komponenter, der modtager kald fra NemLog-in og skal kalde IDWS-services på NSP på vegne af borgeren.
Dokumentet bygger på den overordnede STS - Guide til anvendere og uddyber den tekniske anvendelse af snitfladen /sts/services/SCBST2Idws.
Som beskrevet i STS - Guide til anvendere, så findes der følgende services indenfor anvendelsesområdet SCBST omvekslinger:
| SCBST omveksling | |
| /sts/services/SCBST2Idws | Omveksler et Service Consumer Bootstrap token (SCBST) med et indlejret NemLog-in Identity token (NLSTS:IT) til en OIO IDWS sikkerhedsbillet (IDWS(H)) rettet mod et givent audience, f.eks. Dokumentdelingsservicen. |
Begreb | Forklaring |
|---|---|
NLSTS:IT | Identity token udstedt af NemLog-in STS til den fællesoffentlige løsning (f.eks. borger.dk). Audience er NSP-komponenten. |
SCBST | Service Consumer Bootstrap token. Et OIOSAML token, som NSP-komponenten selv opretter og signerer. NLSTS:IT er indlejret i den som SAML attribut. Findes i Seal.Java som |
Service Consumer | Den NSP-komponent, der udsteder SCBST og kalder STS. Den er konfigureret i STS med issuer og audience. |
IDWS(H) | Den OIO IDWS sikkerhedsbillet, som STS udsteder. |
/sts/services/SCBST2Idws med SCBST, ønsket audience og eventuelle claims og kaldet signeres med komponentens certifikat.STS udfører følgende valideringer. Fejler en af dem, returneres en fejl.
Validering | Konfigureres via |
|---|---|
Audience er angivet, og issuer af SCBST er whitelistet til det audience |
|
Kaldets signatur er gyldig, dækker SOAP Body og SCBST, og kommer fra et trusted certifikat | certifikattype |
Signeringscertifikatet er ikke spærret (CRL) | – |
SCBST er gyldigt i tid |
|
SCBST er signeret af et trusted certifikat og er selvsigneret | certifikattype |
SCBST's audience er lig det konfigurerede audience |
|
Holder-of-key i SCBST matcher klienten, der kalder | – |
NLSTS:IT er gyldigt i tid |
|
NLSTS:IT er signeret af et trusted certifikat (NemLog-in) | certifikattype |
NLSTS:IT's issuer og audience er de konfigurerede |
|
Assurance level i NLSTS:IT er af typen NIST og mindst niveau 3 | – |
CPR i SCBST og NLSTS:IT er ens | – |
CPR findes i CPR-registeret, og borgeren har mindst minimumsalderen | PersonInformation, |
Eventuelle claims er gyldige |
|
Komponenten kan angive ét OnBehalfOf claim i requestet, hvis borgeren skal agere på vegne af en anden borger.
Det angives som wst:Claims med typen dk:healthcare:saml:attribute:OnBehalfOf. Værdien er præfiks og anden borgers CPR.
Relation | Præfiks for værdien | Bemærkning |
|---|---|---|
Fuldmagt |
| Fuldmagter slås op i fuldmagtsregisteret og lægges i billettens privilegier |
Forældremyndighed |
| Relationen valideres og lægges i billettens subject relations |
Værgemål |
| Kræver at issuer og audience er whitelistet ( |
Delvist værgemål |
| Afvises |
Fuldmagter, forældremyndighed og værgemål fungerer som for Bst2Idws. Se STS - Guide til anvendere: Borgeromvekslinger
Afhængig af miljø udstilles tjenesten på:
|
I det følgende gives et eksempel på en omveksling af et SCBST Bootstrap token til OIO IDWS sikkerhedsbillet
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512" xmlns:wst14="http://docs.oasis-open.org/ws-sx/ws-trust/200802" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soapenv:Header>
<wsse:Security mustUnderstand="1" wsu:Id="security">
<wsu:Timestamp wsu:Id="ts">
<wsu:Created>2026-12-02T02:07:23Z</wsu:Created>
</wsu:Timestamp>
<ds:Signature>
<ds:SignedInfo>...</ds:SignedInfo> <!-- references: #body, #ts, #messageID, #action -->
<ds:SignatureValue>ydVW5T2xcgG6IXp0lNMNM6/cYAjbgdPs9tK5s13DX3+RRxue...</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>C=DK, OID.2.5.4.97=NTRDK-33257872, O=Sundhedsdatastyrelsen, SERIALNUMBER=UI:DK-O:G:56e78d27-5546-4329-b405-90d12f86ec4c, CN=NSP Seal.Java VOCES Gyldig Testcertifikat</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
<wsa:Action wsu:Id="action">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue</wsa:Action>
<wsa:MessageID wsu:Id="messageID">urn:uuid:5054486b-5831-49da-a63b-a788ba72ff70</wsa:MessageID>
</soapenv:Header>
<soapenv:Body wsu:Id="body">
<wst:RequestSecurityToken Context="urn:uuid:6ca0a5ea-be46-43db-9f8f-ee22ded7bc65">
<wst:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0</wst:TokenType>
<wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue</wst:RequestType>
<wst14:ActAs>
<saml:Assertion xmlns:disco="urn:liberty:disco:2006-08" xmlns:sec="urn:liberty:security:2006-08" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ID="_0612709a-ec06-4131-970c-59ca0f50ec8e" IssueInstant="2026-12-02T02:07:23Z" Version="2.0">
<saml:Issuer>http://issuer.nspop.dk/</saml:Issuer>
<ds:Signature Id="OCESSignature">
<ds:SignedInfo>...</ds:SignedInfo>
<ds:SignatureValue>GnDRGAYJUORcGq3K6s9lINbOzbJ2ekjDTuHz0fQiK8LZyeEn...</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>C=DK, OID.2.5.4.97=NTRDK-33257872, O=Sundhedsdatastyrelsen, SERIALNUMBER=UI:DK-O:G:56e78d27-5546-4329-b405-90d12f86ec4c, CN=NSP Seal.Java VOCES Gyldig Testcertifikat</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
<saml:Subject>
<saml:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent">nameid</saml:NameID>
<saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:holder-of-key">
<saml:SubjectConfirmationData xsi:type="saml:KeyInfoConfirmationDataType">
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>C=DK, OID.2.5.4.97=NTRDK-33257872, O=Sundhedsdatastyrelsen, SERIALNUMBER=UI:DK-O:G:56e78d27-5546-4329-b405-90d12f86ec4c, CN=NSP Seal.Java VOCES Gyldig Testcertifikat</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</saml:SubjectConfirmationData>
</saml:SubjectConfirmation>
</saml:Subject>
<saml:Conditions NotBefore="2026-12-02T02:07:23Z" NotOnOrAfter="2026-12-02T02:08:23Z">
<saml:AudienceRestriction>
<saml:Audience>https://audience.nspop.dk/x</saml:Audience>
</saml:AudienceRestriction>
</saml:Conditions>
<saml:AttributeStatement>
<saml:Attribute Name="dk:gov:saml:attribute:SpecVer" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xs:string">DK-SAML-SCBST-2.0</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="dk:gov:saml:attribute:CprNumberIdentifier" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xs:string">1111111111</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="dk:gov:saml:attribute:AssuranceLevel" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xs:string">3</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="urn:liberty:disco:2006-08:DiscoveryEPR" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<saml:AttributeValue>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgi...</saml:AttributeValue> <!-- NLSTS:IT, se 4.2 -->
</saml:Attribute>
</saml:AttributeStatement>
</saml:Assertion>
</wst14:ActAs>
<wsp:AppliesTo>
<wsa:EndpointReference>
<wsa:Address>https://audience.nspop.dk/x</wsa:Address>
</wsa:EndpointReference>
</wsp:AppliesTo>
</wst:RequestSecurityToken>
</soapenv:Body>
</soapenv:Envelope> |
Svar fra STS:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soapenv:Header>
<wsse:Security mustUnderstand="1" wsu:Id="security">
<wsu:Timestamp wsu:Id="ts">
<wsu:Created>2026-12-02T02:07:23Z</wsu:Created>
</wsu:Timestamp>
<ds:Signature>
<ds:SignedInfo>...</ds:SignedInfo> <!-- references: #body, #ts, #messageID, #relatesTo, #action -->
<ds:SignatureValue>A2XBQK33x7PXlsK5CTP9FCkjyPU9JpO1Iusg872NdF0INxM7...</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>C=DK, OID.2.5.4.97=NTRDK-33257872, O=Sundhedsdatastyrelsen, SERIALNUMBER=UI:DK-O:G:8d3fa047-c77e-47e4-bdd2-e91488610ce6, CN=NSP Test Service Consumer</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
<wsa:Action wsu:Id="action">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue</wsa:Action>
<wsa:MessageID wsu:Id="messageID">urn:uuid:b39acf11-6e21-479e-816d-e7f76f69db6f</wsa:MessageID>
<wsa:RelatesTo wsu:Id="relatesTo">urn:uuid:5054486b-5831-49da-a63b-a788ba72ff70</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body wsu:Id="body">
<wst:RequestSecurityTokenResponseCollection>
<wst:RequestSecurityTokenResponse Context="urn:uuid:6ca0a5ea-be46-43db-9f8f-ee22ded7bc65">
<wst:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0</wst:TokenType>
<wst:RequestedSecurityToken>
<saml:Assertion xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ID="_5eeb08e7-0c05-474a-a649-101d26097727" IssueInstant="2026-12-02T02:07:23Z" Version="2.0">
<saml:Issuer>TESTSTS</saml:Issuer>
<ds:Signature Id="OCESSignature">
<ds:SignedInfo>...</ds:SignedInfo>
<ds:SignatureValue>bkpQcvql6LucfHi91BgW7gw2KYtOp+1oe6hK8YsSGHfzfsHK...</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>C=DK, OID.2.5.4.97=NTRDK-33257872, O=Sundhedsdatastyrelsen, SERIALNUMBER=UI:DK-O:G:8d3fa047-c77e-47e4-bdd2-e91488610ce6, CN=NSP Test Service Consumer</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
<saml:Subject>
<saml:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent">nameid</saml:NameID>
<saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:holder-of-key">
<saml:SubjectConfirmationData NotOnOrAfter="2026-12-02T02:08:23Z" Recipient="https://audience.nspop.dk/x">
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>C=DK, OID.2.5.4.97=NTRDK-33257872, O=Sundhedsdatastyrelsen, SERIALNUMBER=UI:DK-O:G:56e78d27-5546-4329-b405-90d12f86ec4c, CN=NSP Seal.Java VOCES Gyldig Testcertifikat</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</saml:SubjectConfirmationData>
</saml:SubjectConfirmation>
</saml:Subject>
<saml:Conditions NotBefore="2026-12-02T02:07:23Z" NotOnOrAfter="2026-12-02T02:08:23Z">
<saml:AudienceRestriction>
<saml:Audience>https://audience.nspop.dk/x</saml:Audience>
</saml:AudienceRestriction>
</saml:Conditions>
<saml:AttributeStatement>
<saml:Attribute Name="dk:gov:saml:attribute:SpecVer" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xs:string">DK-SAML-2.0</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="dk:gov:saml:attribute:AssuranceLevel" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xs:string">3</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="dk:gov:saml:attribute:CprNumberIdentifier" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xsi:type="xs:string">1111111111</saml:AttributeValue>
</saml:Attribute>
</saml:AttributeStatement>
</saml:Assertion>
</wst:RequestedSecurityToken>
<wsp:AppliesTo>
<wsa:EndpointReference>
<wsa:Address>https://audience.nspop.dk/x</wsa:Address>
</wsa:EndpointReference>
</wsp:AppliesTo>
<wst:Lifetime>
<wsu:Created>2026-12-02T02:07:23Z</wsu:Created>
<wsu:Expires>2026-12-02T02:08:23Z</wsu:Expires>
</wst:Lifetime>
</wst:RequestSecurityTokenResponse>
</wst:RequestSecurityTokenResponseCollection>
</soapenv:Body>
</soapenv:Envelope> |