Skip to main content

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:

  1. MinimaleMinimal impact opon dethe ontwikkelcapaciteitdevelopment vancapacity leveranciers.of vendors. We wetenknow datthere eris nogstill veela moetlot gebeurento voordo defor eOverdrachteOverdracht, enand datthat dethe deadline snelis nadert.close. We stellenpropose eena oplossingsolution voorthat dievendors idealitercan ideally build in éénone dag is in te bouwen bij de leveranciers.day.

  2. FaciliterenAllow vana eengrowth groeipad.path. We wetenknow datthat hetpersonal gebruikauthentication vanmeans persoonlijkewill authenticatiemiddelensoon binnenkortbecome verplichtmandatory gaatthrough wordenlaws viasuch wettenas als dethe WDO enand dethe WegizWegiz, icmcombined diversewith several NEN normen.standards. DeThe oplossingsolution maaktlets hetcare mogelijkorganizations voorand zorginstellingenvendors enraise leveranciersthe omlevel eenvoudig het niveau op te hogen.easily.

  3. VoldoenComply aanwith deNEN NEN7513.7513. OmTo tecomply kunnenwith voldoenthis aanstandard, deze normit is hetimportant belangrijkto teknow wetenwhich welkeuser gebruikerviewed welkewhich gegevensdata. heeftThe ingezien.proposed Desolution voorgesteldemeets oplossingthis voldoet 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:

middelmeans 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:
    Item Result Remove evidence (done)
    Evidence infrom the presentation doesDone not provide enoughAdd evidence and might even expose internal IPs. Addthe new types to the Nuts JSON-LD context
    AddDone: both NutsEmployeeCredential and NutsSelfIssuedPresentationNutsSelfSignedPresentation to RFC for NutsSelfSignedPresentation Done: part of RFC019 Backwards compatibility of the JSON-LD context. Create RFCcontext for NutsSelfSignedPresentation
    This presentation hints to a verifier that the containing credential(s) have the same subject and issuer.

    (Open) Issues

      Fix backwards compatibility of JSON-LD context
      How to make sure signatures on the new NutsAuthorizationCredential are valid when the new field assurenceLevelResolved: the field is added but not all nodes are updatedassuranceLevel and haveis part of the newNuts context?JSON-LD context (RFC020) Proof of ownership forof the credential
      How to validate the proof signature of presentation? Normally the holder == subject and signs the presentation. Now theThe presentation is signed by the issuer.issuer Solution:(the addcare organization), which must also be the NutsOrgCredentialcredential tosubject. A verifier trusts the presentation,NutsEmployeeCredential addif extraits issuer has a trusted NutsSelfIssuedPresentationNutsOrganizationCredential; typethat credential is not added to the presentation. e.g. trusted(vendor)? && Verify(vendor -> org -> employeeRole) Make sure that the form can be embedded inside an iframe
      Do research for how to configure CORS. Do we need to provide css for usage with and without iframe?