From 97fb8aa0d2233f632fe9fcce9d895acfcf727df1 Mon Sep 17 00:00:00 2001 From: Lal Chandran Date: Tue, 23 Apr 2024 10:13:06 +0200 Subject: [PATCH] Upd: Removed old rfc003 Signed-off-by: Lal Chandran --- ewc-rfc003-issue-PID.md | 854 ---------------------------------------- 1 file changed, 854 deletions(-) delete mode 100644 ewc-rfc003-issue-PID.md diff --git a/ewc-rfc003-issue-PID.md b/ewc-rfc003-issue-PID.md deleted file mode 100644 index 50d3d7c..0000000 --- a/ewc-rfc003-issue-PID.md +++ /dev/null @@ -1,854 +0,0 @@ -# EWC RFC003: Issue PID - v1.0 - -**Authors:** -* Mr Matteo Mirabelli (Infocert, Italy) -* Mr Lal Chandran (iGrant.io, Sweden) - -**Reviewers:** -TBD - -**Status:** Ready for Review - -**Table of Contents** - -- [EWC RFC003: Issue PID - v1.0](#ewc-RFC003-issue-verifiable-credential---v10) -- [1.0 Summary](#10summary) -- [2.0 Motivation](#20motivation) -- [3.0 Messages](#30messages) - - [3.1 Credential offer](#31credential-offer) - - [3.2 Credential offer response](#32credential-offer-response) - - [3.3 Discover request](#33-discover-request) - - [3.4 Discover response](#34-discover-response) - - [3.5 Authorisation request](#35-authorisation-request) - - [3.6 Authorisation response](#36-authorisation-response) - - [3.7 Token request](#37-token-request) - - [3.7.1 Authorisation code flow](#371-authorisation-code-flow) - - [3.7.2 Pre-authorised code flow](#372-pre-authorised-code-flow) - - [3.8 Token response](#38-token-response) - - [3.9 Credential request](#39-credential-request) - - [3.10 Credential response](#310-credential-response) - - [3.10.1 In-time](#3101--in-time) - - [3.10.2 Deferred](#3102-deferred) -- [4.0 Alternate response format](#40alternate-response-format) -- [5.0 Implementers](#50implementers) -- [6.0 Reference](#60reference) -- [Appendix A: Public key resolution](#appendix-a-public-key-resolution) - - -# 1.0 Summary - -This specification implements the OID4VCI workflow for issuing Person Identification Data (PID) credentials by government-approved identity providers within the European Wallet Ecosystem. It defines a standard process to minimize risks and ensure interoperability in issuing high-assurance PIDs across the EUDI wallet ecosystem, adhering to the requirements set forth in the ARF [2]. - - -# 2.0 Motivation - -The EWC LSP must align with the standard protocol for issuing PID from trusted and accredited sources. This uniform approach serves as the foundation for enabling interoperability between identity providers and wallet holders throughout the EWC ecosystem. This RFC assumes that users are familiar with the chosen EWC protocols and standards, and can reference the original specifications when required. - -# 3.0 Messages - -The PID credential issuance process incorporates comprehensive steps to ensure the security, reliability, and compliance. This includes both an authorization flow and a pre-authorized flow, with additional preliminary and post-issuance steps to align with regulatory standards and security best practices. The process is illustrated below, incorporating the critical steps of Wallet Conformity, Trust Anchor Verification, Reliable Data Acquisition, PID Generation, Secure Issuance and Storage, Initial and Periodic Verification, and Renewal and Revocation Policies Management. - -### Preliminary Steps for PID Issuance: - -1. **Wallet Conformity:** Before initiating the PID issuance, the user's wallet must be confirmed to comply with established standards. This includes possessing an internal certificate from Certification Assessment Bodies (CAB) that validates its conformity, ensuring the wallet's capability to securely manage the PID and associated qualified electronic attestations. - -2. **Trust Anchor Verification:** The issuing entity's authorization within the Trust Anchor framework must be validated, ensuring it is listed as an authorized actor, thus guaranteeing that only verified entities can issue the PID. - -3. **Data Acquisition from Reliable Sources:** Personal data used for PID generation must be sourced from authentic and current databases, such as civil registries, ensuring the PID credentials are based on accurate and up-to-date information. - -### PID Credential Issuance Process: - -The PID issuance follows detailed steps starting from the discovery of issuer capabilities, through authentication and authorization, leading to the actual credential issuance. The process is adapted to include the preliminary steps, ensuring a secure and compliant issuance path. - -```mermaid - sequenceDiagram - participant I as Individual using EUDI Wallet - participant TA as Trust Anchor - participant AS as Authentic Source - participant O as Government Identity Provider - - Note over I,O: Discovery of Issuer Capabilities - I->>O: GET: /.well-known/openid-credential-issuer - O-->>I: OpenID credential issuer configuration - I->>O: GET: /.well-known/oauth-authorization-server - O-->>I: OAuth authorization server metadata - - Note over I,TA: Issuer Authorization Verification - I->>TA: Request Issuer Authorization Status - TA-->>I: Confirm Issuer is Trusted - - Note over I,O: Authenticate, Authorize, Check Wallet's Conformity - I->>O: Authorization request - O->>I: Verify Wallet's Certificate of Conformity - O-->>I: Authorization response - I->>O: Token request - O-->>I: Token response - - Note over O,AS: Data Acquisition from Authentic Source - O->>AS: Request Personal Identifier Data - AS-->>O: Provide Personal Identifier Data - - - Note over I,O: PID Generation and Secure Issuance - I->>O: POST: Credential request with token and Personal Identifier Data - O-->>I: Credential response with PID, stored securely in wallet - -``` -Figure 1: PID Issuance Process Incorporating Preliminary Checks - -The process highlights the integration of the new preliminary steps with the traditional authorization code flow and pre-authorized code flow, adhering to the OID4VCI specification. It ensures a robust framework for digital identity issuance, from initial compliance verification to the secure generation and storage of PID credentials, followed by ongoing management. - -### Post-Issuance Verification and Management: -Following the issuance of the PID, initial and periodic verification procedures are crucial to maintain the validity and integrity of the PID and its related electronic attestations. This includes checking for revocation status and ongoing compliance of both the wallet and issuer within the Trust Anchor framework. Additionally, policies for the renewal and revocation of PIDs and electronic attestations must be established to address changes in the individual's status, data breaches, or compliance issues. - -## 3.1 Credential offer - -For PID credential issuance, it is recommended to send the Credential Offer by Reference using the credential_offer_uri parameter to avoid QR code data overload, especially in scenarios where the user needs to scan the QR code for initiating the process. The endpoint expected to be embedded in the QR code is: - -``` -openid-credential-offer://?credential_offer_uri=https://identity-provider.gov/pid-credential-offer - -``` - -In this case, the credential_offer_uri query parameter contains the URL where the credential offer from the government-approved identity provider can be resolved. This approach ensures a streamlined user experience while maintaining the necessary information exchange for the PID issuance process. - -## 3.2 Credential offer response - -Upon resolving the credential_offer_uri query parameter, the identity provider responds with details of the PID credential offer. The response format is adapted to the specific requirements of PID issuance and may include information such as the credential type related to personal identification and the applicable trust framework. The response can be in one of the following formats: - -```json -{ - "credential_issuer": "https://identity-provider.gov", - "credentials": [ - "Person Identification Data" - ], - "grants": { - "authorization_code": { - "issuer_state": "eyJhbGciOiJSU0Et...FYUaBy" - } - } -} -``` - -> [!NOTE] -> To ensure compatibility with all wallets conforming to the European Blockchain Services Infrastructure (EBSI) standards, the following response format is also valid but not **mandatory** to support: - -```json -{ - "credential_issuer": "https://identity-provider.gov", - "credentials": [ - { - "format": "jwt_vc_json", - "types": [ - "VerifiableCredential", - "PersonalIdentityData" - ], - "trust_framework": { - "name": "ewc-issuer-trust-list", - "type": "Accreditation", - "uri": "Link to the trust framework accreditation" - } - } - ], - "grants": { - "authorization_code": { - "issuer_state": "eyJhbGciOiJSU0Et...FYUaBy" - } - } -} -``` - -The holder's wallet retrieves this JSON response and processes it accordingly. The format of the credential (e.g., jwt_vc, sd-jwt_vc) is specified, focusing on the PID. This process ensures that the credential issuance aligns with the stringent requirements for Personal Identity Data within the EWC ecosystem. - -For the pre-authorized flow, the credential response format is adapted to include the necessary grants for PID issuance: - -```json -{ - "credential_issuer": "https://identity-provider.gov", - "credentials": [ - { - "format": "jwt_vc_json", - "types": [ - "VerifiableCredential", - "PersonalIdentityData" - ], - "trust_framework": { - "name": "ebsi", - "type": "Accreditation", - "uri": "Link to the trust framework accreditation" - } - } - ], - "grants": { - "urn:ietf:params:oauth:grant-type:pre-authorized_code": { - "pre-authorized_code": "eyJhbGciOiJSU0Et...FYUaBy", - "user_pin_required": true - } - } -} -``` - -## 3.3 Discover request - -The holder's wallet initiates a request to discover the government identity provider’s authorization server configurations, essential for PID credential issuance. - -To obtain the issuer's configurations, the wallet resolves the /.well-known/openid-credential-issuer endpoint using the credential_issuer URI found in the PID credential offer response: - -```http -GET https://identity-provider.gov/.well-known/openid-credential-issuer -``` - -Subsequently, the wallet requests the /.well-known/oauth-authorization-server endpoint to retrieve the authorization server metadata: - -```http -GET https://identity-provider.gov/.well-known/oauth-authorization-server -``` - -## 3.4 Discover response - -Upon resolving the .well-known endpoints, the **identity provider** responds with its configuration, tailored to support PID credential issuance. The response includes details about supported credentials, endpoints for issuing and managing credentials. It also specifies the cryptographic methods and trust frameworks applicable for PID credentials, as defined by [6]: - -```json -{ - "credential_issuer": "https://identity-provider.gov", - "authorization_server": "https://identity-provider.gov", - "credential_endpoint": "https://identity-provider.gov/credential", - "deferred_credential_endpoint": "https://identity-provider.gov/credential_deferred", - "display": [ - { - "name": "Government Identity Provider", - "location": "Country", - "locale": "en-GB", - "cover": { - "url": "https://identity-provider.gov/cover.jpeg", - "alt_text": "Government Identity Provider" - }, - "logo": { - "url": "https://identity-provider.gov/logo.jpg", - "alt_text": "Government Identity Provider" - }, - "description": "For inquiries about how we manage your personal identification data, please contact our Data Protection Officer." - } - ], - "credentials_supported": { - "PersonalIdentityData": { - "format": "vc+sd-jwt", - "scope": "PersonalIdentityData", - "cryptographic_binding_methods_supported": [ - "jwk" - ], - "cryptographic_suites_supported": [ - "ES256" - ], - "display": [ - { - "name": "Personal Identity Data", - "locale": "en-GB", - "background_color": "#000000", - "text_color": "#FFFFFF" - } - ], - "credential_definition": { - "vct": "PersonalIdentityData", - "claims": { - "given_name": { - "display": [ - { - "name": "Given Name", - "locale": "en-GB" - } - ] - }, - "surname": { - "display": [ - { - "name": "Surname", - "locale": "en-GB" - } - ] - } - // Additional PID-specific claims based on PID Rulebook - } - } - } - } -} - -``` - -> [!NOTE] -> In order to support all EBSI conformant wallets, the following format for the response is also valid, but not **mandatory** to be supported: - -```json -{ - "credential_issuer": "https://identity-provider.gov", - "authorization_server": "https://identity-provider.gov", - "credential_endpoint": "https://identity-provider.gov/credential", - "deferred_credential_endpoint": "https://identity-provider.gov/credential_deferred", - "display": { - "name": "Government Identity Provider", - "location": "Country", - "locale": "en-GB", - "cover": { - "url": "https://identity-provider.gov/cover.jpeg", - "alt_text": "Government Identity Provider" - }, - "logo": { - "url": "https://identity-provider.gov/logo.jpg", - "alt_text": "Government Identity Provider" - }, - "description": "For inquiries about how we manage your personal identification data, please contact our Data Protection Officer." - }, - "credentials_supported": [ - { - "format": "jwt_vc", - "types": [ - "VerifiableCredential", - "PersonalIdentityData" - ], - "trust_framework": { - "name": "ewc-issuer-trust-list", - "type": "Accreditation", - "uri": "Link to the trust framework accreditation" - }, - "display": [ - { - "name": "Personal Identity Data", - "locale": "en-GB" - } - ] - } - ] -} -``` - -Once the well-known endpoint for **authorisation server** configuration is resolved, the response is as given below: - -```json -{ - "issuer": "https://identity-provider.gov", - "authorization_endpoint": "https://identity-provider.gov/authorize", - "token_endpoint": "https://identity-provider.gov/token", - "jwks_uri": "https://identity-provider.gov/jwks", - "scopes_supported": [ - "openid" - ], - "response_types_supported": [ - "vp_token", - "id_token" - ], - "response_modes_supported": [ - "query" - ], - "grant_types_supported": [ - "authorization_code" - ], - "subject_types_supported": [ - "public" - ], - "id_token_signing_alg_values_supported": [ - "ES256" - ], - "request_object_signing_alg_values_supported": [ - "ES256" - ], - "request_parameter_supported": true, - "request_uri_parameter_supported": true, - "token_endpoint_auth_methods_supported": [ - "private_key_jwt" - ], - "request_authentication_methods_supported": { - "authorization_endpoint": [ - "request_object" - ] - }, - "vp_formats_supported": { - "jwt_vp": { - "alg_values_supported": [ - "ES256" - ] - }, - "jwt_vc": { - "alg_values_supported": [ - "ES256" - ] - } - }, - "subject_syntax_types_supported": [ - "did:key:jwk_jcs-pub", - "did:ebsi:v1", - "did:ebsi:v2" - ], - "subject_trust_frameworks_supported": [ - "ebsi", - "ewc-issuer-trust-list" - ], - "id_token_types_supported": [ - "subject_signed_id_token", - "attester_signed_id_token" - ] -} -``` -Currently, we retain the trust framework specified by EBSI. Subsequently, we will specify an additional RFC defining the EWC trusted issuer list. - -## 3.5 Authorisation request - -The authorization request seeks permission to access the PID credential endpoint. Here is an adapted example of this request, specifically aimed at PID issuance by a government identity provider: - -```http -GET https://identity-provider.gov/auth/authorize? - -&response_type=code -&scope=openid -&issuer_state=uniqueStateIdentifier -&state=client-state -&client_id=did%3Akey%3Az2dmzD81cgPx8Vki7JbuuMmFYrWPgYoytykUZ3eyqht1j9KbsEYvdrjxMjQ4tpnje9BDBTzuNDP3knn6qLZErzd4bJ5go2CChoPjd5GAH3zpFJP5fuwSk66U5Pq6EhF4nKnHzDnznEP8fX99nZGgwbAh1o7Gj1X52Tdhf7U4KTk66xsA5r -&authorization_details=%5B%7B%22format%22%3A%22jwt_vc%22%2C%22locations%22%3A%5B%22https%3A%2F%2Fissuer.example.com%22%5D%2C%22type%22%3A%22openid_credential%22%2C%22types%22%3A%5B%22VerifiableCredential%22%2C%22VerifiableAttestation%22%2C%22VerifiablePortableDocumentA1%22%5D%7D%5D -&redirect_uri=openid%3A -&nonce=glkFFoisdfEui43 -&code_challenge=YjI0ZTQ4NTBhMzJmMmZhNjZkZDFkYzVhNzlhNGMyZDdjZDlkMTM4YTY4NjcyMTA5M2Q2OWQ3YjNjOGJlZDBlMSAgLQo%3D -&code_challenge_method=S256 -&client_metadata=%7B%22vp_formats_supported%22%3A%7B%22jwt_vp%22%3A%7B%22alg%22%3A%5B%22ES256%22%5D%7D%2C%22jwt_vc%22%3A%7B%22alg%22%3A%5B%22ES256%22%5D%7D%7D%2C%22response_types_supported%22%3A%5B%22vp_token%22%2C%22id_token%22%5D%2C%22authorization_endpoint%22%3A%22openid%3A%2F%2F%22%7D - -Host: https://identity-provider.gov -``` - -Query params for the authorisation request are given below: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
response_type - The value must be ‘code’ -
scope - The value must be ‘openid’ -
state - The client uses an opaque value to maintain the state between the request and callback. -
client_id - Decentralised identifier -
authorization_details - As specified in OAuth 2.0 Rich Authorization Requests specification to specify fine-grained access [4]. An example is as given below: - - ```json - { - "type": "openid_credential", - "locations": [ - "https://credential-issuer.example.com" - ], - "format": "jwt_vc_json", - "credential_definition": { - "type": [ - "VerifiableCredential", - "UniversityDegreeCredential" - ] - } - } - ``` - > [!NOTE] - > You may also use the earlier version as supported by EBSI. - - ```json - { - "format": "jwt_vc", - "locations": [ - "https://issuer.example.com" - ], - "type": "openid_credential", - "types": [ - "VerifiableCredential", - "VerifiableAttestation", - "VerifiablePortableDocumentA1" - ] - } - ``` -
redirect_uri - For redirection of the response -
code_challenge - As specified in PKCE for OAuth Public Client specification [5] -
code_challenge_method - As specified in PKCE for OAuth Public Client specification -
client_metadata - Holder wallets are non-reachable and can utilise this field in the Authorisation Request to deliver configuration -
issuer_state - If present in the credential offer -
- - -## 3.6 Authorisation response - -In the context of PID credential issuance, the government identity provider may **optionally** request additional details for enhanced authentication, such as DID verification. In scenarios necessitating this heightened security, the authorization response will include a `response_type` parameter set to `direct_post`. An example of such a response is: - -```http -HTTP/1.1 302 Found -Location: http://localhost:8080?state=22857405-1a41-4db9-a638-a980484ecae1&client_id=https%3A%2F%2Fapi-conformance.ebsi.eu%2Fconformance%2Fv3%2Fauth-mock&redirect_uri=https%3A%2F%2Fapi-conformance.ebsi.eu%2Fconformance%2Fv3%2Fauth-mock%2Fdirect_post&response_type=id_token&response_mode=direct_post&scope=openid&nonce=a6f24536-b109-4623-a41a-7a9be932bdf6&request_uri=https%3A%2F%2Fapi-conformance.ebsi.eu%2Fconformance%2Fv3%2Fauth-mock%2Frequest_uri%2F111d2819-9ab7-4959-83e5-f414c57fdc27 -``` - -Query params for the authorisation response are given below: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
state - The client uses an opaque value to maintain the state between the request and callback. -
client_id - Decentralised identifier -
redirect_uri - For redirection of the response -
response_type - The value must be id_token if the issuer requests DID authentication. -
response_mode - The value must be direct_post -
scope - The value must be openid -
nonce - A value used to associate a client session with an ID token and to mitigate replay attacks -
request_uri - The authorisation server’s private key signed the request. -
- - -Following this protocol, the holder wallet is expected to respond with an id_token signed by its DID to the direct post endpoint, completing the authentication: - -```http -POST /direct_post -Content-Type: application/x-www-form-urlencoded -&id_token=eyJraWQiOiJkaW...a980484ecae1 -``` - -If no additional details are requested, the identity provider issues an authorization response containing a `code` parameter with a short-lived authorization code. This streamlined response facilitates a quick and secure exchange, vital for the sensitive nature of PID credential issuance: - -```http -HTTP/1.1 302 Found -Location: https://Wallet.example.org/cb?code=SplxlOBeZQQYbYS6WxSbIA -``` - -## 3.7 Token request - -### 3.7.1 Authorisation code flow - -For PID credential issuance, the token request using the authorization code flow is structured as follows: - -```http -POST /token HTTP/1.1 -Host: identity-provider.gov -Content-Type: application/x-www-form-urlencoded -Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW - -&grant_type=authorization_code -&code=SplxlOBeZQQYbYS6WxSbIA -&code_verifier=dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk -&redirect_uri=https%3A%2F%2FWallet.example.org%2Fcb -``` - -This request is made with the following query params: - - - - - - - - - - - - - - - - - - -
grant_type - Grant type for authorisation. E.g. authorization_code -
client_id - Decentralised identifier -
code - Authorisation code -
code_verifier - Wallet-generated secure random token used to validate the original code_challenge provided in the initial Authorization Request -
- -### 3.7.2 Pre-authorised code flow - -In scenarios where a pre-authorized code is used, the token request is structured as follows: - - -```http -POST /token HTTP/1.1 -Host: identity-provider.gov -Content-Type: application/x-www-form-urlencoded - -&grant_type=urn:ietf:params:oauth:grant-type:pre-authorized_code -&pre-authorized_code=SplxlOBeZQQYbYS6WxSbIA -&user_pin=493536 -``` - -This request is made with the following query params: - - - - - - - - - - - - - - -
grant_type - Grant type for authorisation. E.g. urn:ietf:params:oauth:grant-type:pre-authorized_code -
pre-authorized_code - Code representing the Credential Issuer's authorisation for the Wallet to obtain Credentials of a certain type. This code must be short-lived and single-use. -
user_pin - The end user pin is decided by the issuer and sent to the holder through an out-of-band process. E.g. Email, SMS -
- -## 3.8 Token response - -The token response for PID credential issuance includes: - -```json -{ - "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6Ikp..sHQ", - "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI4a5k..zEF", - "token_type": "bearer", - "expires_in": 86400, - "id_token": "eyJodHRwOi8vbWF0dHIvdGVuYW50L..3Mz", - "c_nonce": "PAPPf3h9lexTv3WYHZx8ajTe", - "c_nonce_expires_in": 86400 -} -``` - -This response grants the wallet an access and a refresh token for requesting the PID credential. - - -## 3.9 Credential request - -To request the PID credential, the holder’s wallet sends a request to the PID Endpoint as follows: - -```http -POST /credential -Content-Type: application/json -Authorization: Bearer eyJ0eXAi...KTjcrDMg - -{ - "format": "vc+sd-jwt", - "credential_definition": { - "vct": "PersonalIdentityData" - }, - "proof": { - "proof_type": "jwt", - "jwt":"eyJraW...KWjceMcr" - } -} -``` - -This request specifies the format and type of credential being requested, along with a JWT proof of the holder’s identity. - -> [!NOTE] -> To support all EBSI conformant wallets, the format for the request can **optionally** include specifications relevant to EBSI standards but adapting to PID-specific credential types. - -```http -POST /credential -Content-Type: application/json -Authorization: Bearer eyJ0eXAi...KTjcrDMg - -{ - "format": "jwt_vc_json", - "proof": { - "jwt": "eyJraWQiOiJkaWQ6a2...su7UFClz9NQnw", - "proof_type": "jwt" - }, - "types": [ - "VerifiableCredential", - "VerifiableAttestation", - "PersonalIdentityData" - ] -} -``` - -## 3.10 Credential response - -The issuance of PID credentials may proceed directly or be deferred, contingent on the issuer's readiness to issue the credential immediately or require additional processing time. - -### 3.10.1 In-time - -In cases where the PID credential is immediately available, the response is structured as follows: - -```json -{ - "format": "vc+sd-jwt", - "credential": "eyJ0eXAiOi...F0YluuK2Cog", //EncodedPIDCredential - "c_nonce": "fGFF7UkhLa", //NonceForThisCredential - "c_nonce_expires_in": 86400 -} -``` -This response provides the PID credential in an encoded format, ensuring that the recipient can use it straightaway. The c_nonce ensures the response's freshness, enhancing security. - -### 3.10.2 Deferred - -Should the credential not be ready for immediate issuance, the response includes an acceptance token, signaling that the PID credential's issuance is deferred: - -```json -{ - "acceptance_token": "eyJ0eXAiOiJKV1QiLCJhbGci..zaEhOOXcifQ", - "c_nonce": "wlbQc6pCJp", - "c_nonce_expires_in": 86400 -} -``` - -If the response contains `acceptance_token` field, then it indicates the credential is not yet available and will be accessible through a deferred PID credential retrieval process: - -```http -POST /deferred-credential -Authorization: BEARER eyJ0eXAiOiJKV1QiLCJhbGci..zaEhOOXcifQ -``` -The holder can later use the acceptance_token to request the credential once it's ready for issuance. - -## 3.11 Issuer Authorization Verification - -During this process, the wallet queries the Trust Anchor to ascertain the issuer's trust status, thereby affirming that the issuer has been vetted and is compliant with established standards and regulations governing PID. It ensures that only entities with verified trustworthiness can issue PID. Further details will be added as soon as additional requirements are derived from ongoing discussions. - -## 3.12 Check Wallet's Conformity - -This verification process involves assessing whether the wallet possesses an internal certificate, issued by Certification Assessment Bodies (CAB), which confirms its compliance with the requisite standards for securely handling PID digital identities and associated qualified electronic attestations. It guarantees the secure storage and management of the PID. Further details will be added as soon as additional requirements are derived from ongoing discussions. - -# 4.0 Alternate response format - -Standard HTTP response codes shall be supported. Any additional ones can be formulated in the following format. - -``` -{ - "error": "invalid_request", - "error_description": "The PID credential request is invalid or expired" -} -``` -The table below summarises the success/error responses that can be used: - - - - - - - - - - - - - - - - - - -
Response format - Description -
invalid_request - The request was invalid or improperly formatted. E.g. The PID credential is expired -
invalid_grant - -
    - -
  • The Authorization Server expects a PIN in the Pre-Authorized Code Flow but the Client provides the wrong PIN. - -
  • The end user provides the wrong Pre-Authorized Code or the Pre-Authorized Code has expired. -
  • -
-
invalid_client - The Client tried to send a Token Request with a Pre-Authorized Code without Client ID, but the Authorization Server does not support anonymous access -
- -# 5.0 Implementers - -Please refer to the [implementers table](https://github.com/EWC-consortium/eudi-wallet-rfcs?tab=readme-ov-file#implementers). - -# 6.0 Reference - -1. OpenID Foundation (2023), 'OpenID for Verifiable Credential Issuance (OID4VCI)', Available at: [https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0-12.html](https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0-12.html) (Accessed: January 10, 2024). -2. European Commission (2023) The European Digital Identity Wallet Architecture and Reference Framework (2023-04, v1.1.0) [Online]. Available at: [https://github.com/eu-digital-identity-wallet/eudi-doc-architecture-and-reference-framework/releases](https://github.com/eu-digital-identity-wallet/eudi-doc-architecture-and-reference-framework/releases) (Accessed: October 16, 2023). -3. OpenID Foundation (2023), 'Self-Issued OpenID Provider v2 (SIOP v2)', Available at: [https://openid.net/specs/openid-connect-self-issued-v2-1_0.html](https://openid.net/specs/openid-connect-self-issued-v2-1_0.html) (Accessed: October 01, 2023) -4. OAuth 2.0 Rich Authorization Requests, Available at: [https://datatracker.ietf.org/doc/html/draft-ietf-oauth-rar-11](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-rar-11) (Accessed: February 01, 2024) -5. Proof Key for Code Exchange by OAuth Public Clients, Available at: [https://datatracker.ietf.org/doc/html/rfc7636](https://datatracker.ietf.org/doc/html/rfc7636) (Accessed: February 01, 2024) -6. OpenID4VC High Assurance Interoperability Profile with SD-JWT VC - draft 00, Available at [https://openid.net/specs/openid4vc-high-assurance-interoperability-profile-sd-jwt-vc-1_0.html](https://openid.net/specs/openid4vc-high-assurance-interoperability-profile-sd-jwt-vc-1_0.html) (Accessed: February 16, 2024) - -# Appendix A: Public key resolution - -For a JWT there are multiple ways for resolving the public key using the `kid` header claim: - -* If the key identifier is a DID then use a DID resolver to obtain the public key -* If the key identifier is not a DID, then resolve the JWKs endpoint in the AS configuration and match the public key from the JWK set using the key identifier. - -Additionally, it is possible to specify JWK directly in the header using `jwk` header claim.