Denna sida beskriver attribut och värden samt dess mappning inom SAML och OIDC.


Revisionshistorik

Version

Datum

Författare

Kommentar

0.8

 

Upprättad
1.0

 

Okänd användare (peterssond)Fastställd
1.1

Kompletterat standard claims listan med at_hash 
1.2

 

Uppdaterat med nya attribut i IdP 2.0
1.3

 

Information om datakällor och användarval


1. Introduktion

IdP tillhandahåller identifierande och behörighetsstyrande användarattribut till anslutna SP/RP.

1.1. Grundflöde för att begära attribut

  • Vilka attribut en SP/RP maximalt får begära registreras i IdP vid anslutning av SP/RP, och bestäms utifrån vilka attribut som begärts i förstudien för anslutning.
    • För SAML så anges attributen i SP-metadata, i ett eller flera <AttributeConsumingService>-element innehållandes önskad uppsättning attribut.
    • För OIDC så registreras tillåtna attribut manuellt av IdP-administratör i samband med registrering av RP.
  • Vid autentiseringsbegäran så anger SP/RP vilka attribut som efterfrågas.
    • För SAML anges vilken kollektion av attribut (vilken <AttributeConsumingService>) som skall användas.
    • För OIDC så anges direkt i anropet vilka attribut som önskas.

Se Attributstyrning SAML respektive Attributstyrning OIDC för mer detaljerad information om hur attributbegäran sker i respektive protokoll samt FAQ - IdP för hur kontroll kan göras av hur befintlig SP/RP begäran ser ut.

2. Datakällor

Autentiserings- och användarattribut som IdP levererar härstammar från en handfull olika datakällor.

2.1. Autentiseringsmetadata

Dessa attribut innefattar information om själva autentiseringen, t.ex. tidpunkt för autentisering, utfärdande entitet, osv.

2.2. Användarcertifikat

Dessa attributvärden hämtas direkt från användarens certifikat.

2.3. HSA

HSA innehåller information om vårdpersonal och deras behörigheter.

Strukturen grovt är att en fysisk person (identifierad med personnummer) har en eller flera personposter i HSA (identifierade med employeeHsaId) som i sin tur kan ha ett eller flera medarbetaruppdrag kopplade till sig (identifierade med commissionHsaId).

  • Fysisk person (personnummer)
    • Personpost1 i HSA (employeeHsaId)
      • uppdrag1 (commissionHsaId)
      • uppdrag2
    • Personpost2
      • uppdrag3
      • uppdrag4

HSA-attribut som IdP levererar kan härstamma från antingen personpost-nivån eller från uppdragsnivån.

Användarnas id-bärare har antingen personnummer eller employeeHsaId ( = personHsaId i HSA-katalogen) som identifierare. Beroende på vilken id-bärare som används vid autentisering så kommer alltså personpost redan vara förvalt eller inte.

2.4. Användarval i autentiseringsflödet

2.4.1. Användarval av Personpost

Användaren kommer att ställas inför ett val av personpost om:

  1. SP/RP har begärt HSA-attribut (på personpost- eller uppdragsnivå) OCH
  2. användaren autentiserar sig med en id-bärare som har hens personnummer som identifierare OCH
  3. användaren har multipla personposter i HSA.

2.4.2. Användarval av medarbetaruppdrag

Användaren kommer att ställas inför ett uppdragsval om:

  1. SP/RP har begärt HSA-attribut på uppdragsnivå OCH
  2. användaren har multipla uppdrag i HSA.

3. Sammanställning och mappning

3.1. Valbara attribut/claims

Tabellen nedan listar alla valbara attribut, definierade för SAML respektive OIDC, huruvida de är multivärda eller inte,  vilken datakälla de kommer ifrån, samt huruvida de kan leda till ett användarval eller ej.

Valbara attribut/claims

SAML Attributnamn

OIDC Claim (s = OIDC standardiserat)MultivärdeDatakälla:
Autentiserings-metadata
Datakälla:
Användar-certifikat
Datakälla:
HSA
Kan leda till val av PersonpostKan leda till val av Uppdrag
urn:sambi:names:attribute:authnMethod

amr (s)

X (för OIDC)X



urn:sambi:names:attribute:x509IssuerName

http://www.w3.org/2000/09/xmldsig#X509IssuerName

x509IssuerName

X


http://www.w3.org/2000/09/xmldsig#X509SubjectName

x509SubjectName

X


urn:sambi:names:attribute:levelOfAssuranceacr (s)
X (utifrån cert)



urn:credential:givenNamecredentialGivenName

X


urn:credential:surnamecredentialSurname

X


urn:credential:personalIdentityNumbercredentialPersonalIdentityNumber

X


urn:credential:displayNamecredentialDisplayName

X


urn:credential:organizationNamecredentialOrganizationName

X


urn:credential:certificatePoliciescredentialCertificatePoliciesX
X


urn:allCommissionsallCommissionsX

X

urn:allEmployeeHsaIdsallEmployeeHsaIdsX

X

http://sambi.se/attributes/1/commissionHsaIdcommissionHsaId


X
X
http://sambi.se/attributes/1/commissionNamecommissionName


X
X
http://sambi.se/attributes/1/commissionPurposecommissionPurpose


X
X
http://sambi.se/attributes/1/commissionRightcommissionRightX

X
X
http://sambi.se/attributes/1/employeeHsaIdemployeeHsaId


XX
http://sambi.se/attributes/1/givenNamegiven_name (s)


XX
http://sambi.se/attributes/1/surnamefamily_name (s)


XX
N/Aname (s)


XX
http://sambi.se/attributes/1/groupPrescriptionCodegroupPrescriptionCodeX

XX
http://sambi.se/attributes/1/healthcareProfessionalLicensehealthcareProfessionalLicenseX

XX
http://sambi.se/attributes/1/healthcareProfessionalLicenseIdentityNumberhealthcareProfessionalLicenseIdentityNumber


XX
http://sambi.se/attributes/1/healthCareProfessionalLicenceSpecialityhealthCareProfessionalLicenceSpecialityX

XX
http://sambi.se/attributes/1/healthCareProviderHsaIdhealthCareProviderHsaId


X
X

http://sambi.se/attributes/1/healthcareProviderId

healthcareProviderId


X
X
http://sambi.se/attributes/1/healthCareProviderNamehealthCareProviderName


X
X
http://sambi.se/attributes/1/healthCareUnitHsaIdhealthCareUnitHsaId


X
X
http://sambi.se/attributes/1/healthCareUnitNamehealthCareUnitName


X
X
http://sambi.se/attributes/1/mailmailX

XX
http://sambi.se/attributes/1/mobileTelephoneNumbermobileTelephoneNumberX

XX
http://sambi.se/attributes/1/occupationalCodeoccupationalCodeX

XX
http://sambi.se/attributes/1/organizationIdentifierorganizationIdentifier


X
X
http://sambi.se/attributes/1/organizationNameorganizationName


X
X
http://sambi.se/attributes/1/paTitleCodepaTitleCodeX

XX
http://sambi.se/attributes/1/personalIdentityNumberpersonalIdentityNumber


XX
http://sambi.se/attributes/1/personalPrescriptionCodepersonalPrescriptionCode


XX
http://sambi.se/attributes/1/pharmacyIdentifierpharmacyIdentifier


X
X
http://sambi.se/attributes/1/systemRolesystemRoleX

XX
http://sambi.se/attributes/1/telephoneNumbertelephoneNumberX

XX
N/AauthorizationScope


XX


3.2. Default attribut/claims

Nedanstående attribut/claims (element inom SAML) är en del av standarderna (SAML/OIDC) och är ej valbara. De levereras alltid när de kan erhållas, och det är applicerbart i förhållande till request.

Standard attribut/claims


Beskrivning

SAML Assertion element

OIDC Claim (s = OIDC standardiserat)MultivärdeDatakälla:
Autentiserings-metadata
Subjektets id

<saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient">9c01e3aa-3046-45d2-a0c7-288842cfb50b</saml2:NameID>

sub (s)
X
Utfärdare av identitetsintyget
(IdP)

<saml2:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">https://auth.dev.inera.test:8443/saml</saml2:Issuer>

iss (s)
X
Tilltänkt mottagare

<saml2:AudienceRestriction>
<saml2:Audience>https://sp.dev.inera.test:8881</saml2:Audience>
</saml2:AudienceRestriction>

aud (s)XX
Giltighetstid

<saml2:Conditions NotOnOrAfter="2018-06-12T18:25:57.701Z">

exp (s)
X
Tidpunkt för utfärdande<saml2:Assertion ID="_466ef75b0524a76c1602e239c79bebcd33a683f1be0dff661bbcbcd80fef" IssueInstant="2018-06-12T17:25:57.695Z" Version="2.0">iat (s)
X
Tillitsnivå (LoA)

<saml2:AuthnContextClassRef>http://id.sambi.se/loa/loa3</saml2:AuthnContextClassRef>

acr
X
Tidpunkt för autentisering<saml2:AuthnStatement AuthnInstant="2018-06-12T17:25:53.875Z" SessionIndex="ecdba7f0-dafd-42ae-8de1-d38b7f2e2946">auth_time (s)
X
Id som klienten skapar och som kommer tillbaka oförvanskat i svaret<saml2:SubjectConfirmationData InResponseTo="219c3745-4399-4366-82ef-ebc92f3af88f" NotOnOrAfter="2018-06-13T05:53:36.828Z" Recipient="https://sp.dev.inera.test:8881/api/saml/sso/HTTP-POST"/>nonce (s)
X
Unikt id för assertion/jwt<saml2:Assertion ID="_466ef75b0524a76c1602e239c79bebcd33a683f1be0dff661bbcbcd80fef" IssueInstant="2018-06-12T17:25:57.695Z" Version="2.0">jti (s)
X
Hash av access token
at_hash(s)
X

3.3. OIDC Scopes

Detta är de scope som definierats i OIDC standard eller av Inera.

ScopeClaims
openid (OIDC standard)

sub, iss, aud, exp, iat, amr, acr, auth_time, jti, at_hash

authorization_scopeauthorizationScope
personal_identity_numberpersonalIdentityNumber
commissionAlla resterande attribut (d.v.s. claims som inte ingår i något annat scope)

4. Attributbeskrivningar

Se https://www.sambi.se/attributes/1/ för mer information om SAMBI attribut.

Attributbeskrivningar

4.1. urn:sambi:names:attribute:authnMethod

Anger identifikationsmetod.

Möjliga värden:

  • urn:oasis:names:tc:SAML:2.0:ac:classes:TLSClient (mTLS med Net iD Enterprise)
  • urn:oasis:names:tc:SAML:2.0:ac:classes:MobileTwoFactorContract (Out-of-band-autentisering med SITHS eID-klienter)

Källa: IdP

4.2. urn:sambi:names:attribute:levelOfAssurance

Anger tillitsnivå (LoA) för den identitetsbärare som använts för användaridentifiering. Bestäms utifrån vilket e-id som används för autentisering. Se Tillitsnivå (LoA) för information om hur IdP tolkar LoA-nivåer.

Möjliga värden:

  • http://id.sambi.se/loa/loa2
  • http://id.sambi.se/loa/loa3
  • http://id.sambi.se/loa/loa4

Källa: IdP, utifrån certifikatsinformation.

4.3. http://www.w3.org/2000/09/xmldsig#X509SubjectName

Anger certifikatets subject (DN) som användes vid autentiseringen. Anges enbart om certifikat användes vid autentiseringen.

Källa: Subject ifrån certifikatet som användes vid autentiseringen.

4.4. http://www.w3.org/2000/09/xmldsig#X509IssuerName

Anger utfärdare av certifikatet (t.ex SITHS / Efos) som användes vid autentiseringen. Anges enbart om certifikat användes vid autentiseringen.

Källa: Issuer ifrån certifikatet som användes vid autentiseringen.

Utfasat namn: urn:sambi:names:attribute:x509IssuerName

4.5. urn:credential:givenName

Anger förnamn

Källa: Hämtas från användarens e-id.

4.6. urn:credential:surname

Anger efternamn

Källa:  Hämtas från användarens e-id.

4.7. urn:credential:personalIdentityNumber

Personnummer eller HSA-id för användaren. 

Källa: SERIALNUMBER i Subject från användarcertifikatet.

4.8. urn:credential:displayName

urn:credential:givenName + urn:credential:surname

Källa: Hämtas från användarens e-id.

4.9. urn:credential:organizationName

Anger organisationsnamn för e-id:t.

Källa: Hämtas från användarens e-id.

4.10. urn:credential:certificatePolicies

Anger certifikats policies.

Källa: Hämtas från användarens e-id.

4.11. urn:allCommissions

Användarens samtliga medarbetaruppdrag

Källa: Katalogtjänst HSA

4.12. urn:allEmployeeHsaIds

Användarens  samtliga HSA-identiteter

Källa: Katalogtjänst HSA

4.13. http://sambi.se/attributes/1/commissionHsaId

HSA-identitet för valt medarbetaruppdrag.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  commission.commissionHsaId

4.14. http://sambi.se/attributes/1/commissionName

Namn på valt medarbetaruppdrag.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  commission.commissionName

4.15. http://sambi.se/attributes/1/commissionPurpose

Syfte med aktuell medarbetaruppdrag.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  commission.commissionPurpose

4.16. http://sambi.se/attributes/1/commissionRight

Rättigheter för aktuell medarbetaruppdrag.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  commission.commissionRight

4.17. http://sambi.se/attributes/1/employeeHsaId

Användarens HSA-ID.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  credentialInformation.personHsaId

4.18. http://sambi.se/attributes/1/givenName

Användarens förnamn.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  credentialInformation.givenName

4.19. http://sambi.se/attributes/1/surname

Användarens mellan- och efternamn.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  credentialInformation.middleAndSurName

4.20. http://sambi.se/attributes/1/groupPrescriptionCode

Gruppförskrivarkoder för specificerad person.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  credentialInformation.groupPrescriptionCode

4.21. http://sambi.se/attributes/1/healthcareProfessionalLicense

Tvåställig kod enligt Socialstyrelsens HOSP register.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  credentialInformation.healthCareProfessionalLicenceCode

4.22. http://sambi.se/attributes/1/healthcareProfessionalLicenseIdentityNumber

Unik identitet (löpnummer) för en person i HOSP.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  credentialInformation.healthcareProfessionalLicenseIdentityNumber 

4.23. http://sambi.se/attributes/1/healthCareProfessionalLicenceSpeciality

Specialistkompetens för läkare eller tandläkare baserat på utfärdat specialistbevis.


Notera att specialistkompetens hanteras i flera kodverk (per 2018-06-01 sex stycken) och att koderna kan vara både två-, fyr- och femställiga.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  credentialInformation.healthCareProfessionalLicenceSpeciality 

4.24. http://sambi.se/attributes/1/healthCareProviderHsaId

HSA-identitet på den vårdgivare aktuellt medarbetaruppdrag tillhör.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  commission.healthCareProviderHsaId

4.25. http://sambi.se/attributes/1/healthcareProviderId

Vårdgivarens organisationsnummer.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  commission.healthCareProviderOrgNo

4.26. http://sambi.se/attributes/1/healthCareProviderName

Namn på den vårdgivare aktuellt uppdrag tillhör.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  commission.healthCareProviderName

4.27. http://sambi.se/attributes/1/healthCareUnitHsaId

HSA-identitet på den vårdenhet aktuellt medarbetaruppdrag tillhör.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  commission.healthCareUnitId

4.28. http://sambi.se/attributes/1/healthCareUnitName

Namn på den vårdenhet aktuellt medarbetaruppdrag tillhör.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  commission.healthCareUnitName

4.29. http://sambi.se/attributes/1/mail

Individens e-postadress.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:employee 
Kontrakt: GetEmployeeIncludingProtectedPerson
Fält:  personInformation.mail

4.30. http://sambi.se/attributes/1/mobileTelephoneNumber

Individens mobilnummer.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:employee 
Kontrakt: GetEmployeeIncludingProtectedPerson
Fält:  personInformation.mobileNumber

4.31. http://sambi.se/attributes/1/occupationalCode

Yrkeskategorier för personal inom vård – och omsorg. Attributet kompletterar healthcareProfessionalLicense, där det senare endast omfattar legitimerade yrken inom  Hälso – och sjukvård

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  credentialInformation.occupationalCode

4.32. http://sambi.se/attributes/1/organizationIdentifier

Organisationsnummer för den organisation aktuellt medarbetaruppdrag tillhör.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  commission.healthCareProviderOrgNo

4.33. http://sambi.se/attributes/1/organizationName

Namn på den organisation aktuellt medarbetaruppdrag tillhör.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  commission.healthCareProviderName

4.34. http://sambi.se/attributes/1/paTitleCode

Personens befattningskoder.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  credentialInformation.paTitleCode 

4.35. http://sambi.se/attributes/1/personalIdentityNumber

Individens personnummer eller samordningsnummer enligt SKV 704 resp. SKV 707.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 

Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  credentialInformation.personalIdentity

4.36. http://sambi.se/attributes/1/personalPrescriptionCode

Förskrivarkod för specificerad person.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  credentialInformation.personalPrescriptionCode

4.37. http://sambi.se/attributes/1/pharmacyIdentifier

Unik identifiering av öppenvårdsapotek.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält: pharmacyIdentifier

4.38. http://sambi.se/attributes/1/systemRole

Systemroller kopplade till specificerad användare.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement 
Kontrakt: GetCredentialsForPersonIncludingProtectedPerson
Fält:  credentialInformation.hsaSystemRole

4.39. http://sambi.se/attributes/1/telephoneNumber

Individens telefonnummer.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:employee 
Kontrakt: GetEmployeeIncludingProtectedPerson
Fält:  personInformation.telephoneNumber

4.40. authorizationScope

Individens administrativa uppdrag.

Erhålls enbart genom OIDC.

Källa: Katalogtjänst HSA
Domän: infrastructure:directory:authorizationmanagement
Kontrakt: GetAdminCredentialsForPersonIncludingProtectedPerson
Fält:  adminCredentialInformation.authorizationScopeProperties

4.41. name

Individens namn sammansatt av given_name (http://sambi.se/attributes/1/givenName) och family_name (http://sambi.se/attributes/1/surname).

Erhålls enbart genom OIDC.

Källa: Katalogtjänst HSA


5. Exempel

5.1. SAML AttributeStatement

SAML AttributeStatement
<saml2:AttributeStatement>
    <saml2:Attribute FriendlyName="commissionHsaId"
        Name="http://sambi.se/attributes/1/commissionHsaId" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">SE111-UPPDRAG-JLL-TEKSYSADMIN</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="commissionName"
        Name="http://sambi.se/attributes/1/commissionName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">Teknisk Systemadministratör JLL</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="commissionRight"
        Name="http://sambi.se/attributes/1/commissionRight" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">Läsa;dia;VG</saml2:AttributeValue>
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">Läsa;fun;VG</saml2:AttributeValue>
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">Läsa;lkf;VG</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="commissionPurpose"
        Name="http://sambi.se/attributes/1/commissionPurpose" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">Administration</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="employeeHsaId"
        Name="http://sambi.se/attributes/1/employeeHsaId" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">TST5565594230-10R3074</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="givenName"
        Name="http://sambi.se/attributes/1/givenName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">Alvi</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="groupPrescriptionCode"
        Name="http://sambi.se/attributes/1/groupPrescriptionCode" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">9000001</saml2:AttributeValue>
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">9200007</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute
        FriendlyName="healthcareProfessionalLicenseIdentityNumber"
        Name="http://sambi.se/attributes/1/healthcareProfessionalLicenseIdentityNumber" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">123456</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute
        FriendlyName="healthCareProfessionalLicenceSpeciality"
        Name="http://sambi.se/attributes/1/healthCareProfessionalLicenceSpeciality" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">{"healthCareProfessionalLicenseCode":"LK","specialityCode":"20100","specialityName":"internmedicin"}</saml2:AttributeValue>
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">{"healthCareProfessionalLicenseCode":"LK","specialityCode":"10700","specialityName":"Ögonsjukdomar"}</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="healthCareProviderHsaId"
        Name="http://sambi.se/attributes/1/healthCareProviderHsaId" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">SE111-JLL</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="healthcareProviderId"
        Name="http://sambi.se/attributes/1/healthcareProviderId" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">232100-0214</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="healthCareProviderName"
        Name="http://sambi.se/attributes/1/healthCareProviderName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">SE111-JLL</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="healthCareUnitHsaId"
        Name="http://sambi.se/attributes/1/healthCareUnitHsaId" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">SE111-ADMIN</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="healthCareUnitName"
        Name="http://sambi.se/attributes/1/healthCareUnitName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">Admin</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="mail"
        Name="http://sambi.se/attributes/1/mail" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">daniel.petersson@example.com</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="mobileTelephoneNumber"
        Name="http://sambi.se/attributes/1/mobileTelephoneNumber" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">0738102283</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="organizationIdentifier"
        Name="http://sambi.se/attributes/1/organizationIdentifier" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">232100-0214</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="organizationName"
        Name="http://sambi.se/attributes/1/organizationName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">SE111-JLL</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="paTitleCode"
        Name="http://sambi.se/attributes/1/paTitleCode" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">201010</saml2:AttributeValue>
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">201013</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="personalIdentityNumber"
        Name="http://sambi.se/attributes/1/personalIdentityNumber" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">199001182386</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="personalPrescriptionCode"
        Name="http://sambi.se/attributes/1/personalPrescriptionCode" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">1234561</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="surname"
        Name="http://sambi.se/attributes/1/surname" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">Palm</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="systemRole"
        Name="http://sambi.se/attributes/1/systemRole" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">BIF;Spärradministratör</saml2:AttributeValue>
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">PU;Sökning</saml2:AttributeValue>
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">PU;Testpersoner</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="authnMethod"
        Name="urn:sambi:names:attribute:authnMethod" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">urn:oasis:names:tc:SAML:2.0:ac:classes:TLSClient</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="x509IssuerName"
        Name="urn:sambi:names:attribute:x509IssuerName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">CN=SITHS Type 1 CA v1 PP,O=Inera AB,C=SE</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="x509IssuerName"
        Name="http://www.w3.org/2000/09/xmldsig#x509IssuerName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">CN=SITHS Type 1 CA v1 PP,O=Inera AB,C=SE</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="x509SubjectName"
        Name="http://www.w3.org/2000/09/xmldsig#x509SubjectName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">SERIALNUMBER=TST5565594230-10R3074, EMAILADDRESS=SITHStest@inera.se, T=Läkare, GIVENNAME=Alvi, SURNAME=Palm, CN=Alvi Palm, O=Testkort, L=Nationell test, C=SE</saml2:AttributeValue>
    </saml2:Attribute>
    <saml2:Attribute FriendlyName="levelOfAssurance"
        Name="urn:sambi:names:attribute:levelOfAssurance" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">http://id.sambi.se/loa/loa3</saml2:AttributeValue>
    </saml2:Attribute>
</saml2:AttributeStatement>

5.2. OIDC ID Token

OIDC ID-token
{
	"commissionPurpose": "Administration",
	"at_hash": "qEj37dgo2bQEyePuzqDyNQ",
	"pharmacyIdentifier": "731.1337.1337:Apotek",
	"sub": "1a400571-a2d0-4b28-b9da-11400ba496e1",
	"healthCareUnitName": "Admin",
	"credentialCertificatePolicies": [
		"2.23.140.1.2.3",
		"1.2.752.74.8.506"
	],
	"allEmployeeHsaIds": [
		"TNT4477663322-1046"
	],
	"amr": [
		"urn:oasis:names:tc:SAML:2.0:ac:classes:TLSClient"
	],
	"iss": "https://idp.dev.inera.test:8443/oidc",
	"credentialGivenName": "Olof",
	"healthcareProviderId": "2321000214",
	"commissionHsaId": "SE111-UPPDRAG-JLL-TEKSYSADMIN",
	"acr": "http://id.sambi.se/loa/loa3",
	"systemRole": [
		{
			"systemId": "BIF",
			"role": "Loggadministratör"
		},
		{
			"systemId": "BIF",
			"role": "Administrator"
		},
		{
			"systemId": "PU",
			"role": "Administratör"
		}
	],
	"organizationIdentifier": "2321000214",
	"credentialSurname": "Olsson",
	"auth_time": 1610616929,
	"healthCareProviderName": "SE111-JLL",
	"exp": 1610618196,
	"healthCareProviderHsaId": "SE111-JLL",
	"iat": 1610617896,
	"commissionRight": [
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "dia"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "fun"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "lkf"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "lkm"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "lko"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "pad"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "pat"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "und"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "upp"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "vbe"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "vko"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "voo"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "vot"
		},
		{
			"activity": "Läsa",
			"scope": "VG",
			"informationClass": "vpo"
		}
	],
	"organizationName": "SE111-JLL",
	"healthCareUnitHsaId": "SE111-ADMIN",
 	"authorizationScope": [
		{
			"authorizationScopePropertyName": "Tjänstesupport",
			"authorizationScopeName": "Hitta och jämför vård",
			"authorizationScopeCode": "HJV",
			"authorizationScopePropertyCode": "HJV;003",
			"authorizationScopeDescription": "Hitta och jämför vård är den del på 1177.se som presenterar kontaktinformation till landets 	vårdmottagningar, deras vårdutbud och vårdkvalitet.Varje enskild mottagning har ett eget ”kontaktkort” där kontaktuppgifter, e-tjänster och övrigt utbud presenteras.",
			"authorizationScopePropertyDescription": "Tjänstesupport Beskrivning",
			"adminCommissions": [
				{
					"adminCommissionHsaId": "TNT4477663322-1021",
					"sector": [
						{
							"sectorFlag": true,
							"feignedUnit": null,
							"name": "CGI Östersund",
							"unitHsaId": "TNT4477663322-101Q"
						}
					],
					"adminCommissionResponsibleOrganisation": "447766-3323",
					"feignedAdminCommission": null
				}
			]
		},
		{
			"authorizationScopePropertyName": "Redaktör kontaktkort",
			"authorizationScopeName": "Hitta och jämför vård",
			"authorizationScopeCode": "HJV",
			"authorizationScopePropertyCode": "HJV;001",
			"authorizationScopeDescription": "Hitta och jämför vård är den del på 1177.se som presenterar kontaktinformation till landets vårdmottagningar, deras vårdutbud och vårdkvalitet.Varje enskild mottagning har ett eget ”kontaktkort” där kontaktuppgifter, e-tjänster och övrigt utbud presenteras.",
			"authorizationScopePropertyDescription": "Redaktör kontaktkort får administrera information på kontaktkorten förutom kontaktkorten.",
			"adminCommissions": [
				{
					"adminCommissionHsaId": "TNT4477663322-1021",
					"sector": [
						{
							"sectorFlag": true,
							"feignedUnit": null,
							"name": "CGI Östersund",
							"unitHsaId": "TNT4477663322-101Q"
						}
					],
					"adminCommissionResponsibleOrganisation": "447766-3323",
					"feignedAdminCommission": null
				}
			]
		}
	],
	"x509SubjectName": "EMAILADDRESS=olof.olsson@inera.test, SERIALNUMBER=TNT4477663322-1046, GIVENNAME=Olof, SURNAME=Olsson, CN=Olof Olsson, O=Inera AB, L=SITHS, C=SE",
	"given_name": "Olof",
	"allCommissions": "[{\"commissionName\":\"Teknisk Systemadministratör JLL\",\"commissionHsaId\":\"SE111-UPPDRAG-JLL-TEKSYSADMIN\",\"commissionPurpose\":\"Administration\",\"healthCareUnitHsaId\":\"SE111-ADMIN\",\"healthCareUnitName\":\"Admin\",\"healthCareProviderHsaId\":\"SE111-JLL\",\"healthCareProviderName\":\"SE111-JLL\",\"healthCareProviderOrgNo\":\"232100-0214\",\"commissionRights\":[{\"activity\":\"Läsa\",\"informationClass\":\"dia\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"fun\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"lkf\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"lkm\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"lko\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"pad\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"pat\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"und\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"upp\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"vbe\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"vko\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"voo\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"vot\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"vpo\",\"scope\":\"VG\"}]},{\"commissionName\":\"Teknisk Systemadministratör SLL\",\"commissionHsaId\":\"SE222-UPPDRAG-SLL-TEKSYSADMIN\",\"commissionPurpose\":\"Administration\",\"healthCareUnitHsaId\":\"SE222-ADMIN\",\"healthCareUnitName\":\"Admin\",\"healthCareProviderHsaId\":\"SE222-SLL\",\"healthCareProviderName\":\"SE222-SLL\",\"healthCareProviderOrgNo\":\"232100-0214\",\"commissionRights\":[{\"activity\":\"Läsa\",\"informationClass\":\"dia\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"fun\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"lkf\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"lkm\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"lko\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"pad\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"pat\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"und\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"upp\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"vbe\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"vko\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"voo\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"vot\",\"scope\":\"VG\"},{\"activity\":\"Läsa\",\"informationClass\":\"vpo\",\"scope\":\"VG\"}]}]",
	"x509IssuerName": "CN=TEST SITHS e-id Person HSA-id 3 CA v1,O=Inera AB,C=SE",
	"aud": "https://sp.dev.inera.test:8881",
	"commissionName": "Teknisk Systemadministratör JLL",
	"credentialPersonalIdentityNumber": "TNT4477663322-1046",
	"employeeHsaId": "TNT4477663322-1046",
	"name": "Olof Olsson",
	"credentialDisplayName": "Olof Olsson",
	"credentialOrganizationName": "Inera AB",
	"family_name": "Olsson"
}
  • No labels