connect T. Lodderstedt Internet-Draft D. Fett Intended status: Standards Track yes.com Expires: November 11, 2019 May 10, 2019 OpenID Connect for Identity Assurance openid-connect-4-identity-assurance-03 Abstract This specification defines an extension of OpenID Connect for providing Relying Parties with verified person data. This extension is intended to be used to verify the identity of a person in compliance with a certain law. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on November 11, 2019. Copyright Notice Copyright (c) 2019 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. Lodderstedt & Fett Expires November 11, 2019 [Page 1] Internet-Draft openid-connect-4-identity-assurance May 2019 Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1. Terminology . . . . . . . . . . . . . . . . . . . . . . . 3 2. Scope and Requirements . . . . . . . . . . . . . . . . . . . 4 3. Claims . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.1. User Claims . . . . . . . . . . . . . . . . . . . . . . . 6 3.2. transaction_id . . . . . . . . . . . . . . . . . . . . . 6 4. Verified Data Representation . . . . . . . . . . . . . . . . 7 4.1. verification Element . . . . . . . . . . . . . . . . . . 7 4.1.1. Evidences . . . . . . . . . . . . . . . . . . . . . . 8 4.2. claims Element . . . . . . . . . . . . . . . . . . . . . 10 5. Requesting Verified Person Data . . . . . . . . . . . . . . . 11 5.1. Requesting User Claims . . . . . . . . . . . . . . . . . 11 5.2. Defining constraints on requested data . . . . . . . . . 12 6. Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.1. id_document . . . . . . . . . . . . . . . . . . . . . . . 16 6.2. id_document + utility bill . . . . . . . . . . . . . . . 17 6.3. Notified eID system (eIDAS) . . . . . . . . . . . . . . . 18 6.4. Verified Person Data in User Info Response . . . . . . . 18 6.4.1. Request . . . . . . . . . . . . . . . . . . . . . . . 18 6.4.2. User Info Response . . . . . . . . . . . . . . . . . 19 6.5. Verified Person Data in ID Tokens . . . . . . . . . . . . 20 6.5.1. Request . . . . . . . . . . . . . . . . . . . . . . . 20 6.5.2. ID Token . . . . . . . . . . . . . . . . . . . . . . 21 6.6. Aggregated Claims . . . . . . . . . . . . . . . . . . . . 22 6.7. Distributed Claims . . . . . . . . . . . . . . . . . . . 23 7. OP Metadata . . . . . . . . . . . . . . . . . . . . . . . . . 23 8. Transaction-specific Purpose . . . . . . . . . . . . . . . . 25 9. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 26 10. Privacy Consideration . . . . . . . . . . . . . . . . . . . . 26 11. Security Considerations . . . . . . . . . . . . . . . . . . . 26 12. Predefined Values . . . . . . . . . . . . . . . . . . . . . . 26 12.1. Trust Frameworks . . . . . . . . . . . . . . . . . . . . 26 12.2. Identity Documents . . . . . . . . . . . . . . . . . . . 27 12.3. Verification Methods . . . . . . . . . . . . . . . . . . 29 13. JSON Schema . . . . . . . . . . . . . . . . . . . . . . . . . 29 14. References . . . . . . . . . . . . . . . . . . . . . . . . . 33 14.1. Normative References . . . . . . . . . . . . . . . . . . 33 14.2. Informative References . . . . . . . . . . . . . . . . . 34 14.3. URIs . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Appendix A. Document History . . . . . . . . . . . . . . . . . . 35 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 36 Lodderstedt & Fett Expires November 11, 2019 [Page 2] Internet-Draft openid-connect-4-identity-assurance May 2019 1. Introduction This specification defines an extension to OpenID Connect [OpenID] to address the use case of strong identity verification of a natural person in accordance with certain laws. Examples include Anti Money Laundering Laws, Telecommunication Acts, Anti Terror Laws, and regulations on trust services, such as eIDAS [eIDAS]. In such use cases, the Relying Parties (RPs) need to know the assurance level of the user Claims attested by the OpenID Connect Providers (OPs) along with evidences related to the identity verification process (identity assurance). Identity assurance significantly differs from authentication assurance, which requires a different representation in the OpenID Connect protocol that is defined in this specification. The assurance level for authentication is a property of a certain OpenID Connect transaction, determined by the authentication means employed and the underlying user account management processes. The "acr" Claim as defined in Section 2 of the OpenID Connect specification [OpenID] is sufficient to convey this information. The identity assurance for user Claims, i.e. the binding of a certain Claim value to the person controlling the respective user account, typically varies among the different user Claims. For example, the assurance an OP typically will be able to attest for an e-mail address will be "self-asserted", "verified by opt-in", or "verified by the respective e-mail provider via an attribute exchange protocol". The family name of a user, in contrast, might have been verified in accordance with the respective Anti Money Laundering Law by showing an ID Card to a trained employee of the OP operator. Identity assurance therefore requires a way to convey assurance data along with and coupled to the respective user Claims. This specification proposes a suitable representation and mechanisms the RP will utilize to request verified person data and accompanying identity assurance data. 1.1. Terminology This section defines some terms relevant to the topic covered in this documents, heavily inspired by NIST SP 800-63A [NIST-SP-800-63a]. o Identity Proofing - process in which a user provides evidence to an OP reliably identifying themselves, thereby allowing the OP to assert that identification at a useful identity assurance level. Lodderstedt & Fett Expires November 11, 2019 [Page 3] Internet-Draft openid-connect-4-identity-assurance May 2019 o Identify Verification - process conducted by the OP to verify the user's identity. o Identity Assurance - process in which the OP attests identity data of a certain user with a certain assurance towards a RP, typically expressed by way of an assurance level. Depending on legal requirements, the OP may also be required to provide evidences of the identity proofing process to the RP. o Verified Person Data - Claims about a person whose binding to a particular use account were verified in the course of an identity verification process. 2. Scope and Requirements The extension specified in this document SHALL o allow an OpenID Connect RP to request identity data and to express requirements regarding this data and the evidences and processes employed, o allow an OP to attest identity data obtained and maintained in accordance with a certain law, and o allow the RP to map the data obtained from the OP to other laws, e.g. it shall be possible to use identity data maintained in accordance with the Anti Money Laundering Law to fulfill requirements defined by eIDAS. The scope of the extension is to define mechanisms to assert verified person data. It SHALL be possible to use existing OpenID Connect claims and other extensions defined beside this extension within the same OpenID Connect transaction and especially to render the same ID Token or other representations utilized to convey user claims. For example, OpenID Connect already defines additional claims to inform the RP of the verification status of the "phone_number" and "email" claims. For the same reason, this extension SHALL allow the OP to attest verified and unverified claims in the same transaction. Where necessary, this extension will introduce new user claims to cover user attributes not currently covered by OpenID Connect, one example is the "place_of_birth". The representation defined in this specification is intended to be used to provide RPs with verified person data via any appropriate channel. In the context of OpenID Connnect, verified person data can Lodderstedt & Fett Expires November 11, 2019 [Page 4] Internet-Draft openid-connect-4-identity-assurance May 2019 be attested in ID Tokens or as part of the User Info response. It is also possible to utilize the format described here in OAuth Token Introspection responses (see [RFC7662] and [I-D.ietf-oauth-jwt-introspection-response]) to provide resource servers with verified person data. This extension defines a way to assert verified claims only. There is no need to cover unverified claims, or rather Claims without further information about the assurance, since they are already covered by OpenID Connect Core [OpenID]. Even for asserting verified claims, this extension shall attempt to utilize existing OpenID Connect claims if possible and reasonable. It MUST, however, ensure developers cannot interpret non-verified claims as verified claims. The representation defined in this extension SHALL allow RPs to obtain assertions about verified claims from different OPs using different trust frameworks. This extension SHALL be usable by OPs operating under a regulation, such as eIDAS, as well as other OPs. The former, called "notified eID system" in eIDAS, can attest identity data without the need to provide further evidences since they are operating under a well- defined regulation with clearly defined liability. For example in case of eIDAS, the respective member state takes the liability for the identities asserted by its notified eID system. The latter do not operate under such well-defined conditions, which typically requires the RP to obtain more data about the identity verification process and assess its applicability in its own legal context. From a technical perspective, this means this specification needs to support cases, where basically verified person data are provided along with the information about the regulatory framework (trust framework) the OP complies with and the respective level of assurance, whereas there shall also be support to externalize information about the identity verification process with the OP to the RP. Note: data transfer between OP and RP requires a legal basis that MUST be established upfront or in the course of the OpenID process. 3. Claims Lodderstedt & Fett Expires November 11, 2019 [Page 5] Internet-Draft openid-connect-4-identity-assurance May 2019 3.1. User Claims In order to fulfill the requirements of some jurisdictions on identity assurance, this specification defines the following claims for conveying user data in addition to the claims defined in the OpenID Connect specification [OpenID]: o "place_of_birth": a structured claim representing the end-user's place of birth. It consists of the following fields: * "country": ISO 3166-1 Alpha-2, e.g. DE, or ISO 3166-3 * "region": State, province, prefecture, or region component * "locality": city or other locality o "nationality": represents the user's nationality in format ISO 3166-1 Alpha-2, e.g. DE o "birth_name": family name someone has when he or she is born, or at least from the time he or she is a child. This term can be used by a man or a woman who changes a name later in life for any reason. o "salutation": end-user's salutation, e.g. "Mr." o "title": end-user's title, e.g. "Dr." 3.2. transaction_id Strong identity verification typically requires the participants to keep an audit trail of the whole process. This specification supports building an audit trail across the boundaries between OP and RP by introducing the claim "transaction_id". The "transaction_id" claim is a string value which o MUST be unique within the context of the respective OP, o MUST uniquely identify a certain transaction at the OP, and o MUST allow an RP to obtain further transaction details if needed. If the OP issues a transaction_id, it MUST maintain a corresponding audit trail, which at least consists of the following details: Lodderstedt & Fett Expires November 11, 2019 [Page 6] Internet-Draft openid-connect-4-identity-assurance May 2019 o the transaction id, o the authentication methods employed, and o the transaction type (e.g. scope values). The OP MUST store the transaction data as long as it is required to store transaction data for auditing purposes by respective regulations. The RP requests this claim like any other claim via the claims parameter or as part of a default claim set identified by a scope value. 4. Verified Data Representation This extension to OpenID Connect wants to ensure that RPs cannot mixup verified and unverified claims and incidentally process unverified claims as verified claims. The representation proposed therefore provides the RP with the verified claims within a structured claim "verified_person_data". This structured claim is composed of the verification evidences related to a certain verification process and the corresponding user claims which were verified in this process. This section explains the structure and meaning of the claim in detail, the syntax is also given as JSON schema in section JSON Schema [1]. The "verified_person_data" claim consists of the following sub- elements: o "verification": REQUIRED. Object that contains all data about the verification process. o "claims": REQUIRED. Object that is the container for the verified user claims. 4.1. verification Element This element contains the information about the process conducted to verify a person's identity and bind the respective person data to a user account. The "verification" element consists of the following elements: Lodderstedt & Fett Expires November 11, 2019 [Page 7] Internet-Draft openid-connect-4-identity-assurance May 2019 "trust_framework": REQUIRED. String determing the trust framework governing the identity verification process and the identity assurance level of the OP. An example value is "eidas_ial_high", which denotes a notified eID system under eIDAS providing identity assurance at level of assurance "High". Standardized values are defined in Trust Frameworks [2]. The "trust_framework" value determines what further data is provided to the RP in the "verification" element. A notified eID system under eIDAS, for example, would not need to provide any further data whereas an OP not governed by eIDAS would need to provide verification evidences in order to allow the RP to fulfill its legal obligations. An example of the latter is an OP acting under the German Anti-Money laundering law ("de_aml"). "date": Time stamp in ISO 8601:2004 YYYY-MM-DD format representing the date when identity verification took place. Presence of this element might be required for certain trust frameworks. "id": Unique reference to the identity verification process as performed by the OP. Used for backtracing in case of disputes or audits. Note: In contrast to this field, the claim "transaction_id" refers to the transaction leading the OP to attest the user's verified identity data towards a RP. Presence of this element might be required for certain trust frameworks. "evidences" is a JSON array containing the evidences the IDP used to verifiy the user's identity as separate JSON objects. Every object contains the property "type" determining it's respective type. The RP uses this information to process the "evidence" property appropriately. 4.1.1. Evidences The following types of evidences are defined: o "id_document": verification based on any kind of government issued identity document o "utility_bill": verification based on an utility bill o "qes": verification based on a eIDAS Qualified Electronic Signature Lodderstedt & Fett Expires November 11, 2019 [Page 8] Internet-Draft openid-connect-4-identity-assurance May 2019 4.1.1.1. id_document The following elements are contained in an "id_document" evidence sub-element. "method": REQUIRED. The method used to verify the id document, predefined values are given in Verification Methods [3] "verifier": OPTIONAL. A JSON object denoting the legal entity that performed the identity verification on behalf of the OP. This object SHOULD only be included if the IDP did not perform the identity verification itself. This object consists of the following properties: o "organization": String denoting the organization which performed the verification on behalf of the OP. o "agent": Agent (person) who conducted the verification. The agent may be identified by Name or an identifier which can be resolved into the agent's name during an audit. "document": A JSON object representing the id document used to perform the id verification. It consists of the following properties: o "type": REQUIRED. String denoting the type of the id document, standardized values are defined in Identity Documents [4]. The OP MAY use other than the predefined values in which case the RPs will either be unable to process the assertion, just store this value for audit purposes, or apply bespoken business logic to it. o "number": String representing the number of the identity document. o "issuer": A JSON object containg information about the government agency that issued this identity document. This object consists of the following properties: * "name": REQUIRED. Designation of the issuer of the identity document * "country": String denoting the country where the document was issued, format: ISO 3166-1 Alpha-2, e.g. "DE". o "date_of_issuance": CONDITIONALLY REQUIRED. The date the document was issued as ISO 8601:2004 YYYY-MM-DD format, if this attribute exists for the particular type of document. Lodderstedt & Fett Expires November 11, 2019 [Page 9] Internet-Draft openid-connect-4-identity-assurance May 2019 o "date_of_expiry": CONDITIONALLY REQUIRED. The date the document will expire as ISO 8601:2004 YYYY-MM-DD format, if this attribute exists for the particular type of document. 4.1.1.2. utility_bill The following elements are contained in a "utility_bill" evidence sub-element. "provider": REQUIRED. A JSON object identifying the respective provider that issued the bill. The object consists of the following properties: o "name": A String designating the provider. o All elements of the OpenID Connect "address" Claim ([OpenID]) "date": A ISO 8601:2004 YYYY-MM-DD formated string containing the date when this bill was issued. 4.1.1.3. qes The following elements are contained in a "qes" evidence sub-element. "issuer": REQUIRED. A String denoting the trust service provider that created the eletronic signatue. "issued_at": REQUIRED. The date the signature was created as ISO 8601:2004 YYYY-MM-DD format "serial_number": REQUIRED. String containing the serial number of the certificate used to sign. 4.2. claims Element The "claims" element contains the user claims which were verified by the process and according to the policies determined by the corresponding "verification" element. The "claims" element MAY contain one or more of the following user claims as defined in Section 5.1 of the OpenID Connect specification [OpenID] o "name" o "given_name" o "middle_name" Lodderstedt & Fett Expires November 11, 2019 [Page 10] Internet-Draft openid-connect-4-identity-assurance May 2019 o "family_name" o "birthdate" o "address" or of the following claims as defined in Section User Claims [5]: o "place_of_birth" o "nationality" o "birth_name" The "claims" element MAY also contain other claims given the value of the respective claim was verified in the verification process represented by the sibling "verification" element. 5. Requesting Verified Person Data 5.1. Requesting User Claims Verified person data can be requested on the level of individual user claims by utilzing the "claims" parameter as defined in Section 5.5. of the OpenID Connect specification [OpenID]. Bassically, the claim "verified_person_data" is added to the section "userinfo" or "id_token" of the "claims" parameter. Since "verified_person_data" contains the effective user claims in a nested "claims" element, the syntax is extended to include expressions on nested elements as follows. The "verified_person_data" element includes a "claims" element, which in turn includes the desired user claims as keys with a "null" value. An example is shown in the following: { "userinfo":{ "verified_person_data":{ "claims":{ "given_name":null, "family_name":null, "birthdate":null } } } } Lodderstedt & Fett Expires November 11, 2019 [Page 11] Internet-Draft openid-connect-4-identity-assurance May 2019 Use of the "claims" parameter allows the RP to exactly select the user claims needed for its use case. This extension therefore allows RPs to fulfill the requirement for data minimization. RPs MAY indicate that a certain claim is essential to the sucessful completion of the user journey by utilizing the "essential" field as defined in Section 5.5.1. of the OpenID Connect specification [OpenID]. The following example designates both given as well as family name as being essential. { "userinfo":{ "verified_person_data":{ "claims":{ "given_name":{"essential": true}, "family_name":{"essential": true}, "birthdate":null } } } } Note: A "claims" sub-element with value "null" is interpreted as a request for all possible claims. An example is shown in the following: { "userinfo":{ "verified_person_data":{ "claims":null } } } Note: The "claims" sub-element can be omitted, which is equivalent to a claims element whose value is "null". Note: If the "claims" sub-element is empty or contains a claim not fulfilling the requirements defined in Section claims [6], the OP will abort the transaction with an "invalid_request" error. 5.2. Defining constraints on requested data The RP MAY express requirements regarding the elements in the verification sub-element. Lodderstedt & Fett Expires November 11, 2019 [Page 12] Internet-Draft openid-connect-4-identity-assurance May 2019 This, again, requires an extension to the syntax as defined in Section 5.5. of the OpenID Connect specification [OpenID] due to the nested nature of the "verified_person_data" claim. Section 5.5.1 of the OpenID Connect specification [OpenID] defines a query syntax that allows for the member value of the claim being requested to be a JSON object with additional information/constraints on the claim. For doing so it defines three members ("essential", "value" and "values") with special query meanings and allows for other special members to be defined (while stating that any members that are not understood must be ignored). This specification re-uses this mechanics and introduces a new such member "max_age" (see below). To start with, the RP may limit the possible values of the elements "trust_framework", "evidences/id_document/document/type", and "identity_document/method" by utilizing the "value" or "values" fields. The following example shows that the RP wants to obtain an attestation based on AML and limited to users who were identified in a bank branch using government issued id documents. Lodderstedt & Fett Expires November 11, 2019 [Page 13] Internet-Draft openid-connect-4-identity-assurance May 2019 { "userinfo":{ "verified_person_data":{ "verification":{ "trust_framework":{ "value":"de_aml" }, "id_document":{ "document":{ "type":{ "values":[ "idcard", "passport" ] } }, "method":{ "value":"pipp" } } }, "claims":null } } } The RP may also express a requirement regarding the age of the verification data, i.e., the time elapsed since the verification process asserted in the "verification" element has taken place. This specification therefore defines a new member "max_age". "max_age": OPTIONAL. Is a JSON number value only applicable to claims that contain dates or timestamps. It defines the maximum time (in seconds) to be allowed to elapse since the value of the date/ timestamp up to the point in time of the request. The IDP should make the calculation of elapsed time starting from the last valid second of the date value. The following is an example of a request for claims where the verification process of the data is not allowed to be older than 63113852 seconds. The following is an example: Lodderstedt & Fett Expires November 11, 2019 [Page 14] Internet-Draft openid-connect-4-identity-assurance May 2019 { "userinfo":{ "verified_person_data":{ "verification":{ "date":{ "max_age":"63113852" } }, "claims":null } } } The OP SHOULD try to fulfill this requirement. If the verification data of the user is older than the requested "max_age", the OP MAY attempt to refresh the user's verification by sending her through a online identity verification process, e.g. by utilizing an electronic ID card or a video identification approach. If the OP is unable to fulfill the requirement (even in case it is marked as being "essential"), it will provide the RP with the data available and the RP may decide how to use the data. The OP MUST NOT return an error in case it cannot return all claims requested as essential claims. 6. Examples The following sections show examples of "verified_person_data" objects. The first and second section show JSON snippets of the general identity assurance case, where the RP is provided with verification evidences for different verification methods along with the actual user claims. The third section illustrate how the contents of this object could look like in case of a notified eID system under eIDAS, where the OP does not need to provide evidences of the identity verification process to the RP. Subsequent sections contain examples for using the "verified_person_data" claim on different channels and in combination with other (non-verified) user claims. Lodderstedt & Fett Expires November 11, 2019 [Page 15] Internet-Draft openid-connect-4-identity-assurance May 2019 6.1. id_document { "verified_person_data":{ "verification":{ "trust_framework":"de_aml", "date":"2013-02-21", "id":"676q3636461467647q8498785747q487", "evidences":[ { "type":"id_document", "method":"pipp", "document":{ "type":"idcard", "issuer":{ "name":"Stadt Augsburg", "country":"DE" }, "number":"53554554", "date_of_issuance":"2012-04-23", "date_of_expiry":"2022-04-22" } } ] }, "claims":{ "given_name":"Max", "family_name":"Meier", "birthdate":"1956-01-28", "place_of_birth":{ "country":"DE", "locality":"Musterstadt" }, "nationality":"DE", "address":{ "locality":"Maxstadt", "postal_code":"12344", "country":"DE", "street_address":"An der Sandduene 22" } } } } Lodderstedt & Fett Expires November 11, 2019 [Page 16] Internet-Draft openid-connect-4-identity-assurance May 2019 6.2. id_document + utility bill { "verified_person_data":{ "verification":{ "trust_framework":"de_aml", "date":"2013-02-21", "id":"676q3636461467647q8498785747q487", "evidences":[ { "type":"id_document", "method":"pipp", "document":{ "document_type":"de_erp_replacement_idcard", "issuer":{ "name":"Stadt Augsburg", "country":"DE" }, "number":"53554554", "date_of_issuance":"2012-04-23", "date_of_expiry":"2022-04-22" } }, { "type":"utility_bill", "provider":{ "name":"Stadtwerke Musterstadt", "country":"DE", "region":"Thueringen", "street_address":"Energiestrasse 33" }, "date":"2013-01-31" } ] }, "claims":{ "given_name":"Max", "family_name":"Meier", "birthdate":"1956-01-28", "place_of_birth":{ "country":"DE", "locality":"Musterstadt" }, "nationality":"DE", "address":{ "locality":"Maxstadt", "postal_code":"12344", "country":"DE", Lodderstedt & Fett Expires November 11, 2019 [Page 17] Internet-Draft openid-connect-4-identity-assurance May 2019 "street_address":"An der Sandduene 22" } } } } 6.3. Notified eID system (eIDAS) { "verified_person_data":{ "verification":{ "trust_framework":"eidas_ial_substantial" }, "claims":{ "given_name":"Max", "family_name":"Meier", "birthdate":"1956-01-28", "place_of_birth":{ "country":"DE", "locality":"Musterstadt" }, "nationality":"DE", "address":{ "locality":"Maxstadt", "postal_code":"12344", "country":"DE", "street_address":"An der Sandduene 22" } } } } 6.4. Verified Person Data in User Info Response 6.4.1. Request In this example we assume the RP uses the scope parameter to request the email address and, additionally, the claims parameter, to request verified person data. The scope value is: "scope=openid email" The value of the claims parameter is: Lodderstedt & Fett Expires November 11, 2019 [Page 18] Internet-Draft openid-connect-4-identity-assurance May 2019 { "userinfo":{ "verified_person_data":{ "claims":{ "given_name":null, "family_name":null, "birthdate":null } } } } 6.4.2. User Info Response The respective user info response would be Lodderstedt & Fett Expires November 11, 2019 [Page 19] Internet-Draft openid-connect-4-identity-assurance May 2019 HTTP/1.1 200 OK Content-Type: application/json { "iss":"https://server.example.com", "sub":"248289761001", "email":"janedoe@example.com", "email_verified":true, "verified_person_data":{ "verification":{ "trust_framework":"de_aml", "date":"2013-02-21", "id":"676q3636461467647q8498785747q487", "evidences":[ { "type":"id_document", "method":"pipp", "document":{ "type":"idcard", "issuer":{ "name":"Stadt Augsburg", "country":"DE" }, "number":"53554554", "date_of_issuance":"2012-04-23", "date_of_expiry":"2022-04-22" } } ] }, "claims":{ "given_name":"Max", "family_name":"Meier", "birthdate":"1956-01-28" } } } 6.5. Verified Person Data in ID Tokens 6.5.1. Request In this case, the RP requests verfied person data along with other user claims in the claims parameter and allocates the response to the ID Token (delivered from the token endpoint in case of grant type "code"). The "claims" parameter value is Lodderstedt & Fett Expires November 11, 2019 [Page 20] Internet-Draft openid-connect-4-identity-assurance May 2019 { "id_token":{ "email":null, "preferred_username":null, "picture":null, "verified_person_data":{ "claims":{ "given_name":null, "family_name":null, "birthdate":null } } } } 6.5.2. ID Token The respective ID Token could be Lodderstedt & Fett Expires November 11, 2019 [Page 21] Internet-Draft openid-connect-4-identity-assurance May 2019 { "iss":"https://server.example.com", "sub":"24400320", "aud":"s6BhdRkqt3", "nonce":"n-0S6_WzA2Mj", "exp":1311281970, "iat":1311280970, "auth_time":1311280969, "acr":"urn:mace:incommon:iap:silver", "email":"janedoe@example.com", "preferred_username":"j.doe", "picture":"http://example.com/janedoe/me.jpg", "verified_person_data":{ "verification":{ "trust_framework":"de_aml", "date":"2013-02-21", "id":"676q3636461467647q8498785747q487", "evidences":[ { "type":"id_document", "method":"pipp", "document":{ "type":"idcard", "issuer":{ "name":"Stadt Augsburg", "country":"DE" }, "number":"53554554", "date_of_issuance":"2012-04-23", "date_of_expiry":"2022-04-22" } } ] }, "claims":{ "given_name":"Max", "family_name":"Meier", "birthdate":"1956-01-28" } } } 6.6. Aggregated Claims Note: line breaks for display purposes only Lodderstedt & Fett Expires November 11, 2019 [Page 22] Internet-Draft openid-connect-4-identity-assurance May 2019 HTTP/1.1 200 OK Content-Type: application/json { "iss":"https://server.example.com", "sub":"248289761001", "email":"janedoe@example.com", "email_verified":true, "_claim_names":{ "verified_person_data":"src1" }, "_claim_sources":{ "src1":{ "JWT":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL3NlcnZlci5vd GhlcmlkcC5jb20iLCJ2ZXJpZmllZF9wZXJzb25fZGF0YSI6eyJ2ZXJpZmljYXRpb24iOnsidHJ1c3RfZnJh bWV3b3JrIjoiZWlkYXNfaWFsX3N1YnN0YW50aWFsIn0sImNsYWltcyI6eyJnaXZlbl9uYW1lIjoiTWF4Iiw iZmFtaWx5X25hbWUiOiJNZWllciIsImJpcnRoZGF0ZSI6IjE5NTYtMDEtMjgifX19.aRrgmBWQTJPqMgmkg WGyqNu1QlDjtQ8YuXoHjUzJbq4" } } } 6.7. Distributed Claims HTTP/1.1 200 OK Content-Type: application/json { "iss":"https://server.example.com", "sub":"248289761001", "email":"janedoe@example.com", "email_verified":true, "_claim_names":{ "verified_person_data":"src1" }, "_claim_sources":{ "src1":{ "endpoint":"https://server.yetanotheridp.com/claim_source", "access_token":"ksj3n283dkeafb76cdef" } } } 7. OP Metadata The OP advertises its capabilities with respect to verified person data in its openid-configuration (see [OpenID-Discovery]) using the following new elements: Lodderstedt & Fett Expires November 11, 2019 [Page 23] Internet-Draft openid-connect-4-identity-assurance May 2019 "verified_person_data_supported": Boolean value indicating support for the "verified_person_data", i.e. the OpenID Connect for Identity Assurance extension. "trust_frameworks_supported" This is a JSON array containing all supported trust frameworks. "evidences_supported" This JSON array contains all types of identity evidences the OP uses. "id_documents_supported" This JSON array contains all identity documents utilized by the OP for identity verification. "id_documents_verification_methods_supported" This element is a JSON array containing the id document verification methods a OP supports as defined in Section verification [7]. "verified_person_data_supported" This JSON array contains all claims supported within "verified_person_data". This is an example openid-configuration snippet: Lodderstedt & Fett Expires November 11, 2019 [Page 24] Internet-Draft openid-connect-4-identity-assurance May 2019 { ... "verified_person_data_supported":true, "trust_frameworks_supported":[ "nist_800_63A_ial_2", "nist_800_63A_ial_3" ], "evidences_supported":[ "id_document", "utility_bill", "qes" ] "id_documents_supported":[ "idcard", "passport", "driving_permit" ] "id_documents_verification_methods_supported":[ "pipp", "sripp", "eid" ] "verified_person_data_supported":[ "given_name", "family_name", "birthdate", "place_of_birth", "nationality", "address" ], ... } The OP MUST support the claims parameter and needs to publish this in its openid-configuration using the claim "claims_parameter_supported". 8. Transaction-specific Purpose This specification introduces the request parameter "purpose" to allow a RP to state the purpose for the transfer of user data it is asking for. "purpose" OPTIONAL. String describing the purpose for obtaining certain user data from the OP. The purpose MUST NOT be shorter than 3 characters and MUST NOT be longer than 300 characters. If these rules are violated, the authentication request MUST fail and the OP returns an error "invalid_request" to the RP. Lodderstedt & Fett Expires November 11, 2019 [Page 25] Internet-Draft openid-connect-4-identity-assurance May 2019 The OP MUST display this purpose in the respective user consent screen(s) in order to inform the user about the designated use of the data to be transferred or the authorization to be approved. If the parameter "purpose" is not present in the request, the OP MAY utilize a description that was pre-configured for the respective RP. Note: In order to prevent injection attacks, the IDP MUST escape the text appropriately before it will be shown in a user interface. The IDP MUST expect special characters in the URL decoded purpose text provided by the RP. The IDP MUST ensure that any special characters in the purpose text cannot be used to inject code into the web interface of the OP (e.g. cross-site scripting, defacing). Proper escaping MUST be applied by the OP. The OP SHALL NOT remove characters from the purpose text to this end. 9. Acknowledgements The following people at yes.com and partner companies contributed to the concept described in the initial contribution to this specification: Karsten Buch, Lukas Stiebig, Sven Manz, Waldemar Zimpfer, Willi Wiedergold, Fabian Hoffmann, Daniel Keijsers, Ralf Wagner, Sebastian Ebling, Peter Eisenhofer. I would like to thank Sebastian Ebling, Marcus Sanz, Tom Jones, Mike Pegman, and Jeff Lombardo for their valuable feedback that helped to evolve this specification. 10. Privacy Consideration OP and RP MUST establish a legal basis before exchanging any personally identifiable information. 11. Security Considerations TBD 12. Predefined Values 12.1. Trust Frameworks This section defines trust framework identifiers for use with this specification. o Identifier: "de_aml" o Definition: The OP verifies and maintains user identities in conforms with the German Anti-Money Laundering Law. Lodderstedt & Fett Expires November 11, 2019 [Page 26] Internet-Draft openid-connect-4-identity-assurance May 2019 o Identifier: "eidas_ial_substantial" o Definition: The OP is able to attest user identities in accordance with the EU regulation No 910/2014 (eIDAS) at the identitfication assurance level "Substantial". o Identifier: "eidas_ial_high" o Definition: The OP is able to attest user identities in accordance with the EU regulation No 910/2014 (eIDAS) at the identitfication assurance level "High". o Identifier: "nist_800_63A_ial_2" o Definition: The OP is able to attest user identities in accordance with the NIST Special Publication 800-63A at the Identity Assurance Level 2. o Identifier: "nist_800_63A_ial_3" o Definition: The OP is able to attest user identities in accordance with the NIST Special Publication 800-63A at the Identity Assurance Level 3. 12.2. Identity Documents This section defines identity doccument identifiers for use with this specification. o Identifier: "idcard" o Definition: An identity document issued by a country's government for the purpose of identifying a citizen. o Identifier: "passport" o Definition: A passport is a travel document, usually issued by a country's government, that certifies the identity and nationality of its holder primarily for the purpose of international travel.[OxfordPassport] o Identifier: "driving_permit" o Definition: Offical document permitting an individual to operate motorized vehicles. In the absence of a formal identity document, a driver's license may be accepted in many countries for identity verification. Lodderstedt & Fett Expires November 11, 2019 [Page 27] Internet-Draft openid-connect-4-identity-assurance May 2019 o Identifier: "de_idcard_foreigners" o Definition: ID Card issued by the German government to foreign nationals. o Identifier: "de_emergency_idcard" o Definition: ID Card issued by the German government to foreign nationals as passports replacement o Identifier: "de_erp" o Definition: Electronic Resident Permit issued by the German government to foreign nationals o Identifier: "de_erp_replacement_idcard" o Definition: Electronic Resident Permit issued by the German government to foreign nationals as replacement for another identity document o Identifier: "de_idcard_refugees" o Definition: ID Card issued by the German government to refugees as passports replacement o Identifier: "de_idcard_apatrids" o Defintion: ID Card issued by the German government to apatrids as passports replacement o Identifier: "de_certificate_of_suspension_of_deportation" o Definition: identity document issued to refugees in case of suspension of deportation that are marked as "id card replacement" o Identifier: "de_permission_to_reside" o Definition: permission to reside issued by the German governed to foreign nationals appliying for asylum o Identifier: "de_replacement_idcard" o Defintion: ID Card replacement document issued by the German government to foreign nationals (see Act on the Residence, Economic Activity and Integration of Foreigners in the Federal Territory, Residence Act, Appendix D1 ID Card replacement according to S. 48 Abs. 2 i.V.m. S. 78a Abs. 4) Lodderstedt & Fett Expires November 11, 2019 [Page 28] Internet-Draft openid-connect-4-identity-assurance May 2019 12.3. Verification Methods This section defines identity doccument identifiers for use with this specification. o Identifier: "pipp" o Definition: Physical In-Person Proofing o Identifier: "sripp" o Definition: Supervised remote In-Person Proofing o Identifier: "eid" o Definition: Online ID card verification function 13. JSON Schema This section contains the JSON Schema of assertions containing the "verified_person_data" claim. { "definitions":{ "qes":{ "type":"object", "properties":{ "type":{ "type":"string", "enum":[ "qes" ] }, "issuer":{ "type":"string" }, "issued_at":{ "type":"string", "format":"date" }, "serial_number":{ "type":"string" } }, "required":[ "type", "issuer", "serial_number", Lodderstedt & Fett Expires November 11, 2019 [Page 29] Internet-Draft openid-connect-4-identity-assurance May 2019 "issued_at" ] }, "utility_bill":{ "type":"object", "properties":{ "type":{ "type":"string", "enum":[ "utility_bill" ] }, "provider":{ "type":"object", "properties":{ "name":{ "type":"string" }, "country":{ "type":"string" }, "region":{ "type":"string" }, "street_address":{ "type":"string" } } }, "date":{ "type":"string" } }, "required":[ "type", "provider", "date" ] }, "id_document":{ "type":"object", "properties":{ "type":{ "type":"string", "enum":[ "id_document" ] }, Lodderstedt & Fett Expires November 11, 2019 [Page 30] Internet-Draft openid-connect-4-identity-assurance May 2019 "method":{ "type":"string", "enum":[ "pipp", "sripp", "eid" ] }, "verifier":{ "type":"object", "properties":{ "organization":{ "type":"string" }, "agent":{ "type":"string" } } }, "document":{ "type":"object", "properties":{ "type":{ "type":"string", "enum":[ "idcard", "passport", "driving_permit", "de_idcard_foreigners", "de_emergency_idcard", "de_erp", "de_erp_replacement_idcard", "de_idcard_refugees", "de_idcard_apatrids", "de_certificate_of_suspension_of_deportation", "de_permission_to_reside", "de_replacement_idcard" ] }, "number":{ "type":"string" }, "issuer":{ "type":"object", "properties":{ "name":{ "type":"string" }, Lodderstedt & Fett Expires November 11, 2019 [Page 31] Internet-Draft openid-connect-4-identity-assurance May 2019 "country":{ "type":"string" } } }, "date_of_issuance":{ "type":"string", "format":"date" }, "date_of_expiry":{ "type":"string", "format":"date" } } } }, "required":[ "type", "method", "id_document" ] } }, "type":"object", "properties":{ "verified_person_data":{ "type":"object", "properties":{ "verification":{ "type":"object", "properties":{ "trust_framework":{ "type":"string", "enum":[ "de_aml", "eidas_ial_substantial", "eidas_ial_hig", "nist_800_63A_ial_2", "nist_800_63A_ial_3" ] }, "date":{ "type":"string", "format":"date" }, "id":{ "type":"string" }, Lodderstedt & Fett Expires November 11, 2019 [Page 32] Internet-Draft openid-connect-4-identity-assurance May 2019 "evidences":{ "type":"array", "minItems":1, "items":{ "oneOf":[ { "$ref":"#/definitions/id_document" }, { "$ref":"#/definitions/utility_bill" }, { "$ref":"#/definitions/qes" } ] } } }, "required":[ "trust_framework" ], "additionalProperties":false }, "claims":{ "type":"object", "minProperties":1 } }, "required":[ "verification", "claims" ], "additionalProperties":false } }, "required":[ "verified_person_data" ] } 14. References 14.1. Normative References [OpenID] Sakimura, N., Bradley, J., Jones, M., de Medeiros, B., and C. Mortimore, "OpenID Connect Core 1.0 incorporating errata set 1", Nov 2014, . Lodderstedt & Fett Expires November 11, 2019 [Page 33] Internet-Draft openid-connect-4-identity-assurance May 2019 [OpenID-Discovery] Sakimura, N., Bradley, J., de Medeiros, B., and E. Jay, "OpenID Connect Discovery 1.0 incorporating errata set 1", Nov 2014, . 14.2. Informative References [eIDAS] European Parliament, "REGULATION (EU) No 910/2014 OF THE EUROPEAN PARLIAMENT AND OF THE COUNCIL on electronic identification and trust services for electronic transactions in the internal market and repealing Directive 1999/93/EC", July 2014, . [I-D.ietf-oauth-jwt-introspection-response] Lodderstedt, T. and V. Dzhuvinov, "JWT Response for OAuth Token Introspection", draft-ietf-oauth-jwt-introspection- response-02 (work in progress), February 2019. [NIST-SP-800-63a] NIST, Fentony, James., Lefkovitz, Naomi., Danker, Jamie., Choong, Yee-Yin., Greene, Kristen., and Mary. Theofanos, "NIST Special Publication 800-63A, Digital Identity Guidelines, Enrollment and Identity Proofing Requirements", June 2017, . [OxfordPassport] Cane, P. and Mary. Conaghan, "The New Oxford Companion to Law. ISBN 9780199290543.", 2008, . [RFC7662] Richer, J., Ed., "OAuth 2.0 Token Introspection", RFC 7662, DOI 10.17487/RFC7662, October 2015, . 14.3. URIs [1] #json_schema [2] #predefined_values_tf [3] #predefined_values_vm [4] #predefined_values_idd Lodderstedt & Fett Expires November 11, 2019 [Page 34] Internet-Draft openid-connect-4-identity-assurance May 2019 [5] #userclaims [6] #claimselement [7] #verification Appendix A. Document History [[ To be removed from the final specification ]] -03 o enhanced draft to support multiple evidences o added a JSON Schema for assertions containing the "verified_person_data" Claim o added more identity document definitions o added "region" field to "place_of_birth" Claim o changed "eidas_loa_substantial/high" to "eidas_ial_substantial/ high" o fixed typos in examples o uppercased all editorial occurences of the term "claims" to align with OpenID Connect Core -02 o added new request parameter "purpose" o simplified/reduced number of verification methods o simplfied identifiers o added "identity_documents_supported" to metadata section o improved examples -01 o fixed some typos o remove organization element (redundant) (issue 1080) o allow other user claims in the "claims" sub element (issue 1079) Lodderstedt & Fett Expires November 11, 2019 [Page 35] Internet-Draft openid-connect-4-identity-assurance May 2019 o changed legal_context to trust_framework o added explanation how the content of the verification element is determined by the trust framework o added URI-based identifiers for trust_framework, identity_document and (verification) method o added example attestation for notified/regulated eID system o adopted OP metadata section accordingly o changed error behavior for "max_age" member to alig with OpenID Core o Added feature to let the RP express requirements for verification data (trust framework, identity documents, verification method) o Added privacy consideration section and added text on legal basis for data exchange o Added explanation about regulated and un-regulated eID systems -00 (WG document) o turned the proposal into a WG document o changed name o added terminology section and reworked introduction o added several examples (ID Token vs User Info, non-verified & verified claims, aggregated & distributed claims) o incorporated text proposal of Marcos Sanz regarding max_age o added IANA registration for new error code "unable_to_meet_requirement" Authors' Addresses Torsten Lodderstedt yes.com Email: torsten@lodderstedt.net Lodderstedt & Fett Expires November 11, 2019 [Page 36] Internet-Draft openid-connect-4-identity-assurance May 2019 Daniel Fett yes.com Email: mail@danielfett.de Lodderstedt & Fett Expires November 11, 2019 [Page 37]