Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Description of This page describes the required SAML attributes in the tokens for municipal and regional users.

Common for both municipal and regional users is that:

  1. Municipal and regional users' access to the eHealth Infrastructure goes through SEB.

  2. The Infrastructure Authorization Service (AS) redirects a login to SEB (as SAML AuthNRequest to SEB).

  3. SEB forwards redirected the SAML AuthNRequest to municipal and regional Identity Providers (IdP), respectively.

    1. As apparent in From the SEB there are differences in what systems are involved in the login flow.

    2. Federated Authentication and Authorization for Municipal Users and describes the flow for municipality users.

    3. Federated Authentication and Authorization for Regional Users there are differences in what systems are involved.

    What is returned to
    1. describes the flow for regional users.

  4. The SAML AuthNResponse returned to the SEB and the Infrastructure AS is a SAML AuthNResponse conforming must conform to OIO BPP

Info

Technically speaking, authorization is performed in the Infrastructure Authorization Service while the municipal and regional IdP provide claims. In effect, however, the IdPs provide the decisions behind the authorization in the form of system roles.

Clinical SAML Attributes

Clinical access to the eHealth Infrastructure goes through SEB. SEB provides a SAML AuthNResponse containing a set The SAML AuthNResponse from the SEB shall contain a number of SAML attributes in a SAML assertion which is used the eHealth Infrastructure uses to identify the clinical user.

Attribute

Description

urn:oid:2.5.4.10

Organization name

dk:gov:saml:attribute:CprNumberIdentifier

Required from SEB. Civil registration number (CPR)

dk:gov:saml:attribute:CvrNumberIdentifier

CVR number

dk:gov:saml:attribute:RidNumberIdentifier

RID number from certificate

dk:gov:saml:attribute:AssuranceLevel

AssuranceLevel (must be 4)

urn:oid:2.5.4.3

Required from SEB.

Common name (full name)

urn:liberty:disco:2006-08:DiscoveryEPR

IDCard

dk:healthcare:saml:attribute:HasUserAuthorization

A boolean saying if the user has any healthcare authorizations

dk:healthcare:saml:attribute:UserAuthorizations

A list of the users healthcare authorizations

urn:oid:0.9.2342.19200300.100.1.1

Required from SEB.

The globally unique ID of the user within his/her organization. (also known as UID)

dk:gov:saml:attribute:Privileges_intermediate

Required from SEB.

A base64-encoded XML structure in OIO BPP format, listing privileges. If an employee should have any permissions, this attribute should define one or more roles in scope of an organizational unit or careteam, e.g. a SOR number, STS Organisation or careteam reference. See general structure in documentation[1].

[1] https://digst.dk/media/19020/oiosaml-basic-privilege-profile-1_1.pdf

dk:healthcare:ehealth:saml:attribute:scopingOIOBPPContext

Optional. Can be used to limit scopes expressed in the OIO BPP structure, by adding it as a constraint in each PrivilegeGroup. Only PriviledgeGroups with the constraint matching the value of scopingOIOBPPContext will be available for the user.

Note

The scopingOIOBPPContext is not yet processed by the Infrastructure Authorization Server and is ignored. It can be used to support multi affiliation in the future.

The attributes used are

  1. the CPR number (dk:gov:saml:attribute:CprNumberIdentifier),

  2. the UID and

  3. the OIO BPP format (dk:gov:saml:attribute:Privileges_intermediate).

The CPR number is primarily used for delivering data to the central NSP MinLog2 service.

The UID uniquely identifies the user in the eHealth Infrastructure and the T

The OIO BPP provides the roles and careteams that are accessible to the user.

...

The structure of the OIO BPP, used in Privileges_intermediate, is capable of expressing multiple careteam- and organization affiliations. If only a single careteam is expressed in the OIO BPP it is automatically set in the user's context of the user. In the case where the user is part of multiple careteams, the user needs to set the wanted careteam in context (see Switching Context). Once a careteam is set into context, the roles under that careteam apply to the user - expressed in the JWT (the internal access token of the eHealth Infrastructure).

...