Proposal for EmployeeIdentity means
Implemented. This proposal is specified in RFC019 Employee Identity Authentication Means and RFC020 Authorization credential extension, and implemented in the Nuts node as means employeeid, for spec v1 (did:nuts). This page is the original proposal, in English and Dutch.proposal. Where it differs from the RFCs (e.g. field names, request and response examples), the RFCs apply.
In this document we propose a new means to identify a user. The identity is issued by the employer about the employee, hence the name EmployeeIdentity. The goal of this means is to reuse the information form the current session the user has within the application. This will result is a smoother user experience with the cost of less trust in the correctness of the information.
The proposal was first discussed in a pull request on RFC002, which was closed; the final text is in RFC019 and RFC020.
UitgangspuntenPrinciples
UitgangspuntenThe bijproposed desolution voorgesteldeis oplossingbased zijnon alsthese volgt:principles:
-
MinimaleMinimal impactopondetheontwikkelcapaciteitdevelopmentvancapacityleveranciers.of vendors. WewetenknowdatthereerisnogstillveelamoetlotgebeurentovoordodeforeOverdrachteOverdracht,enanddatthatdethe deadlinesnelisnadert.close. Westellenproposeeenaoplossingsolutionvoorthatdievendorsidealitercan ideally build inéénonedag is in te bouwen bij de leveranciers.day. -
FaciliterenAllowvanaeengrowthgroeipad.path. Wewetenknowdatthathetpersonalgebruikauthenticationvanmeanspersoonlijkewillauthenticatiemiddelensoonbinnenkortbecomeverplichtmandatorygaatthroughwordenlawsviasuchwettenasals dethe WDOenanddetheWegizWegiz,icmcombineddiversewith several NENnormen.standards.DeTheoplossingsolutionmaaktletshetcaremogelijkorganizationsvoorandzorginstellingenvendorsenraiseleverancierstheomleveleenvoudig het niveau op te hogen.easily. -
VoldoenComplyaanwithdeNENNEN7513.7513.OmTotecomplykunnenwithvoldoenthisaanstandard,deze normit ishetimportantbelangrijktoteknowwetenwhichwelkeusergebruikerviewedwelkewhichgegevensdata.heeftTheingezien.proposedDesolutionvoorgesteldemeetsoplossingthisvoldoet aan deze eis.requirement.
OplossingsrichtingProposed solution
Assurance Levellevel eisrequirement
DeThe zorginstellingcare moetorganization zelfmust kunnenbe bepalenable welketo eisendecide zewhich stellentrust aanlevel hetit vertrouwensniveuarequires vanof hetthe gebruiktemeans middel.used. DaaromThat stellenis why we eenpropose nieuwa veldnew field authenticationAssuranceLevel voor in hetthe AuthorizationCredential, waarinwhich eenstates betrouwbaarheidsniveauthe vanassurance hetlevel gebruikteof middelthe wordtmeans opgegeven.used.
HetThe Nuts afsprakenagreement stelselframework schrijftthen vervolgensdefines eena lijstlist vanof levels enand middelenmeans, voor,for bijvoorbeeld:example:
| level | |
|---|---|
| EmployeeIdentity | low |
| Yivi(IRMA) | middle/substantial |
| Uzi | high |
DitThe data holder sets this level moet worden gezet per resourceresource. doorThe derequesting bronhouder.party Derequests opvragendethe partijuser vraagtidentity deat gebruikersidentiteitthe uitrequired op het gevraagde niveau.level.
Voorbeeld gebruikExample
OnderstaandThe object below is eenan voorbeeldexample vanof eena credentialSubject vanof eenan AuthorizationCredential waarthat hetuses the authenticationAssuranceLevel veld wordt gebruikt:field:
{
"id": "did:nuts:SjkuVHVqZndMVVJwcnUzbjhuZklhODB1M1M0LW9LcWY0WUs5S2",
"legalBase": {
"consentType": "explicit",
"evidence": {
"path": "pdf/f2aeec97-fc0d-42bf-8ca7-0548192d4231",
"type": "application/pdf"
}
},
"localParameters": {...},
"resources": [
{
"path": "/DocumentReference/f2aeec97-fc0d-42bf-8ca7-0548192d4231",
"operations": ["read"],
"userContext": true,
"authenticationAssuranceLevel": "low"
}
],
"purposeOfUse": "test-service",
"subject": "urn:oid:2.16.840.1.113883.2.4.6.3:123456780"
}
IntroductieIntroducing vana een nieuwnew EmployeeIdentity middelmeans
HetThe probleem watproblem we optry proberento te lossensolve is dethe problematiekimplementation, bijacceptance implementatie,and acceptatierollout enof uitrolpersonal vanauthentication persoonlijke authenticatiemiddelen.means. We verwachtenexpect datcare zorginstellingenorganizations meerto tijdneed nodigmore hebbentime internto beleid,set ondersteuningup eninternal uitrolpolicy, vansupport dezeand middelenrollout infor tethese richtenmeans. enThe opchoice teof tuigen. Ookmeans is dealso keuzestill uitlimited, middelenso nogthey beperktdon't waardoorfit dezethe nogwork nietprocesses aansluitenof bijcare deorganizations werkprocessenyet. vanCare zorginstellingen.organizations Zorginstellingensay geventhey aanwant terugto tefall willenback vallenon opexisting bestaandeagreements afsprakenbetween onderlingthem, enand elkaartrust daarineach teother vertrouwento metidentify hettheir identificerenemployees. vanThat medewerkers.is Daarom introducerenwhy we hetintroduce the EmployeeIdentity middel.means. DitThis middelmeans ishas van niveaulevel low enand gebruiktuses dethe identiteitidentity vanof dethe ingelogdelogged-in gebruiker.user.
DitThis middelmeans is eena drop-in replacement voorfor hetthe Yivi(Yivi (IRMA) middel.means.
Create signing session
Current payload for the IRMA means:
POST /internal/auth/v1/signature/session
{
"means": "irma",
"payload": "EN:PractitionerLogin:v3 I hereby declare to act on behalf of CareBears located in CareTown. This declaration is valid from Monday, 2 January 2006 15:04:05 until Monday, 2 January 2006 17:04:05."
}
Proposed payload for the EmployeeIdentity means:
POST /internal/auth/v1/signature/session
{
"means": "employeeIdentity",
"params": {
"employer":"did:123",
"emplopyee": {
"identifier": "481",
"roleName": "Verpleegkundige niveau 2",
"initials": "J",
"familyName": "van Dijk",
"email": "j.vandijk@example.com"
}
},
"payload": "EN:PractitionerLogin:v3 I hereby declare to act on behalf of CareBears located in CareTown. This declaration is valid from Monday, 2 January 2006 15:04:05 until Monday, 2 January 2006 17:04:05."
}
Response:
IRMA:
{
"sessionID": "123",
"sessionPtr": {QRCode},
"means": "irma"
}
The frontend renders the contents of the sessionPtr as a QRCode.
EmployeeIdentity:
{
"sessionID": "123",
"sessionPtr": { "url":"nuts.example.com/public/auth/employeeID/123" },
"means": "irma"
}
DeThe frontend uses the url from the sessionPtr object to open a new browser window or render the page in a iframe.
Polling for the session status
IRMA enand EmployeeIdentity:
GET /internal/auth/v1/signature/session/{sessionID}
Pending, as long as the user is signing the contract:
{
"status": "pending"
}
Completed:
{
"status": "completed",
"verifiablePresentation": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://nuts.nl/credentials/v1",
"http://schema.org/",
"https://w3c-ccg.github.io/lds-jws2020/contexts/lds-jws2020-v1.json"
],
"type": ["VerifiablePresentation", "NutsSelfSignedPresentation"],
"verifiableCredential": [
{
"issuer": "did:nuts:careOrg",
"type": ["VerifiableCredential", "NutsEmployeeCredential"],
"expirationDate": "2023-04-03T20:34:17.687862+01:00",
"credentialSubject": {
"type":"Organization",
"id":"did:nuts:123456789",
"member":{
"type":"EmployeeRole",
"identifier": "481",
"roleName": "Verpleegkundige niveau 2",
"member": {
"type": "Person",
"initials": "J",
"familyName": "van Dijk",
"email": "j.vandijk@example.com"
}
}
}],
"proof": {
"type": "JsonWebSignature2020",
"verificationMethod": "did:nuts:123456789#key-1",
"created": "2023-04-03T16:34:17.687862+01:00",
"jws": "eyJhbGciOiJFUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..hKcboC8m6YnZPi6ReJAYs0J0Ztn5nxcx2EavoXdtrkWxmE1JZmImW89_8IIgjvfI8XtGeDlEnGywAuY2u7y9Bw"
}
},
"proof": {
"challenge": "LOGIN CONTRACT",
"type": "JsonWebSignature2020",
"verificationMethod": "did:nuts:123456789#key-1",
"created": "2023-04-03T16:34:17.687862+01:00",
"jws": "eyJhbGciOiJFUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..hKcboC8m6YnZPi6ReJAYs0J0Ztn5nxcx2EavoXdtrkWxmE1JZmImW89_8IIgjvfI8XtGeDlEnGywAuY2u7y9Bw"
}
}
}
Usage of the identity token
The usage of the returned identity is the same for IRMA and EmployeeIdentity: the value of the verifiablePresentation field is base64 encoded and added to the access token request in the usi field.
TODOStatus
Implemented
in Nuts node v5.3.0, as specified in RFC019 and RFC020. The open points of the proposal were settled as follows:NutsEmployeeCredential and NutsSelfSignedPresentation
NutsSelfSignedPresentation
Done: part of RFC019
Backwards compatibility of the JSON-LD (Open) Issues
assurenceLevelResolved: the field is assuranceLevel and NutsEmployeeCredential NutsSelfIssuedPresentationNutsOrganizationCredential; trusted(vendor)?