Excerpt |
---|
This page described describes the federated login for citizen citizens using NemLogin as IdP, and the required SAML attributes for citizen users. |
...
Using the provided SAML attributes, the infrastructure searches for a Patient resource that corresponds to the citizen. If found, the infrastructure automatically sets the Patient context in the access token and the user_id
is set to the Patient resource reference. The citizen cannot switch context and can access only Patient data being scoped to that Patient context.
In case no Patient is found, the access token user_id
is set to a UUID instead of a Patient resource reference. This design ensures that federated NemLogin can be verified without blocking the citizen from accessing the platform. When no Patient is found, the citizen is accessing the infrastructure prior to before having been enrolled (created as a Patient) by an employee through https://docs.ehealth.sundhed.dk/latest-released/igfhir/OperationDefinition-ehealth-patient-create.html .
Note |
---|
A Citizen Solution shall handle |
...