Skip to main content

Generalized Policy Management profile for OpenID

1 Introduction

This section is not normative.

This document provides a mapping profile for Generalized Policy Management (GPM), targeting the OpenID framework. In particular, it maps parameters of the following specifications on the GPM model.

  • ...

2 Mapping OpenID to GPM

2.1 Core information

... shared between authorization request and token request.

2.1.1 scope

The scope property is defined in RFC6749 as optional, but required by several OAuth 2.0 extensions.

!! OPTIONAL for OpenID4VP; REQUIRED for OpenID4VP (when no dcql_query).

2.1.2 resource

The resource property is defined in RFC8707 (Resource Indicators for OAuth 2.0) as optional.

!! RECOMMENDED for OpenID4VCI (when authorization_servers in Credential Issuer Metadata).

2.1.3 authorization_details

The authorization_details property is defined in RFC9396 (Rich Authorization Requests) as optional.

!! OPTIONAL for OpenID4VCI (with object of type openid_credential).

  • The type field ...

  • The optional locations field ... !! OpenID4VCI: If the Credential Issuer metadata contains an authorization_servers parameter, the authorization detail's locations common data field MUST be set to the Credential Issuer Identifier value.

credential_configuration_id
REQUIRED for OpenID4VCI (authorization request).
String specifying a unique identifier of the Credential being described in the credential_configurations_supported map in the Credential Issuer Metadata ... [which] conveys the details of the requested Credential, such as the format and format-specific parameters.
claims
OPTIONAL for OpenID4VCI (authorization request).
A non-empty array of claims description objects ... The order of claims description objects in the claims array is used ... to determine the order in which the claims are displayed to the End-User ... When a repeated or contradictory claim description is provided, the processing MUST be aborted.
path
REQUIRED for OpenID4VCI.
A non-empty array representing a claims path pointer that specifies the path to a claim within the credential.
mandatory
OPTIONAL for OpenID4VCI.
Boolean which, when set to true, indicates that the Wallet will only accept a Credential that includes this claim. If set to false, the claim is not required to be included in the Credential ... [In issuer metadata, it] indicates that the Credential Issuer will always include this claim in the issued Credential. If set to false, the claim is not included in the issued Credential if the wallet did not request the inclusion of the claim, and/or if the Credential Issuer chose to not include the claim ... If the mandatory parameter is omitted, the default value is false. <!-- display
OPTIONAL for OpenID4VCI.
A non-empty array of objects, where each object contains display properties of a certain claim in the Credential for a certain language.
name
OPTIONAL for OpenID4VCI.
String value of a display name for the claim.
locale
OPTIONAL for OpenID4VCI.
String value that identifies the language of this object, represented as language tag values defined in BCP47. There MUST be only one object for each language identifier. -->

Target: - OpenID4VCI: - Assets("credential_configuration_id") (req. unique) - Assets("authorization_details[*].claims[*]") (opt.) - OpenID4VP: - Assets("dcql_query.credentials[*]") (opt.) - Assets("dcql_query.credentials[*].claims[*]") (opt.)

Action: OIDC, OpenID4VCI, OpenID4VP: `static({ @id: "openid:read" })

2.1.4 dcql_query

dcql_query (OpenID4VP)
REQUIRED [in OpenID4VP without scope; and not both].
credentials
REQUIRED. A non-empty array of Credential Queries ... that specify the requested Credentials.
id
REQUIRED. A [non-empty string consisting of alphanumeric characters, underscores, or hyphens] identifying the Credential in the response and, if provided, the constraints in credential_sets ... Within the Authorization Request, the same id MUST NOT be present more than once.
format
REQUIRED. A string that specifies the format of the requested Credential.
multiple
OPTIONAL. A boolean which indicates whether multiple Credentials can be returned for this Credential Query. If omitted, the default value is false.
meta
REQUIRED. An object defining additional properties requested by the Verifier that apply to the metadata and validity data of the Credential. The properties of this object are defined per Credential Format. If empty, no specific constraints are placed on the metadata or validity of the requested Credential.
trusted_authorities
OPTIONAL. A non-empty array of objects ... that specifies expected authorities or trust frameworks that certify Issuers, that the Verifier will accept. Every Credential returned by the Wallet SHOULD match at least one of the conditions present in the corresponding trusted_authorities array if present.
type
REQUIRED. A string uniquely identifying the type of information about the issuer trust framework. [E.g., aki, etsi_tl, openid_federation.]
values
REQUIRED. A non-empty array of strings, where each string (value) contains information specific to the used Trusted Authorities Query type that allows the identification of an issuer, a trust framework, or a federation that an issuer belongs to.
require_cryptographic_holder_binding
OPTIONAL. A boolean which indicates whether the Verifier requires a Cryptographic Holder Binding proof. The default value is true.
claims
OPTIONAL. A non-empty array of objects ... that specifies claims in the requested Credential. Verifiers MUST NOT point to the same claim more than once in a single query. Wallets SHOULD ignore such duplicate claim queries.
id
REQUIRED if claim_sets is present in the Credential Query; OPTIONAL otherwise. A [non-empty string consisting of alphanumeric characters, underscores, or hyphens] identifying the particular claim ... Within the particular claims array, the same id MUST NOT be present more than once.
path
REQUIRED. The value MUST be a non-empty array representing a claims path pointer that specifies the path to a claim within the Credential.
values
OPTIONAL. A non-empty array of strings, integers or boolean values that specifies the expected values of the claim. If the values property is present, the Wallet SHOULD return the claim only if the type and value of the claim both match exactly for at least one of the elements in the array.
claim_sets
OPTIONAL. A non-empty array containing arrays of identifiers for elements in claims that specifies which combinations of claims for the Credential are requested.
credential_sets
OPTIONAL. A non-empty array of Credential Set Queries ... that specifies additional constraints on which of the requested Credentials to return.
options
REQUIRED. A non-empty array, where each value in the array is a list of Credential Query identifiers representing one set of Credentials that satisfies the use case. The value of each element in the options array is a non-empty array of identifiers which reference elements in credentials.
required
OPTIONAL A boolean which indicates whether this set of Credentials is required to satisfy the particular use case at the Verifier. If omitted, the default value is true.

2.2 Authorization request

client_metadata (OpenID4VP)
OPTIONAL. A JSON object containing the Verifier metadata values. It MUST be UTF-8 encoded. The following metadata parameters MAY be used:
jwks
OPTIONAL. A JSON Web Key Set ... that contains one or more public keys, such as those used by the Wallet as an input to a key agreement that may be used for encryption of the Authorization Response ... or where the Wallet will require the public key of the Verifier to generate a Verifiable Presentation. This allows the Verifier to pass ephemeral keys specific to this Authorization Request. Public keys included in this parameter MUST NOT be used to verify the signature of signed Authorization Requests. Each JWK in the set MUST have a kid (Key ID) parameter that uniquely identifies the key within the context of the request.
encrypted_response_enc_values_supported
OPTIONAL. Non-empty array of strings, where each string is a JWE enc algorithm that can be used as the content encryption algorithm for encrypting the Response. When a response_mode requiring encryption of the Response is specified, this MUST be present for anything other than the default single value of A128GCM. Otherwise, this SHOULD be absent.
vp_formats_supported
REQUIRED when not available to the Wallet via another mechanism. Authoritative data the Wallet is able to obtain about the Client from other sources ... take precedence over the values passed in client_metadata. Other metadata parameters MUST be ignored unless a profile of this specification explicitly defines them as usable in the client_metadata parameter.
verifier_info (OpenID4VP)
OPTIONAL. A non-empty array of attestations about the Verifier relevant to the Credential Request. These attestations MAY include Verifier metadata, policies, trust status, or authorizations. Attestations are intended to support authorization decisions, inform Wallet policy enforcement, or enrich the End-User consent dialog.
format
REQUIRED. A string that identifies the format of the attestation and how it is encoded.
data
REQUIRED. An object or string containing an attestation (e.g. a JWT). The payload structure is defined on a per format level. It is at the discretion of the Wallet whether it uses the information from verifier_info. Factors that influence such Wallet's decision include, but are not limited to, trust framework the Wallet supports, specific policies defined by the Issuers or ecosystem, and profiles of this specification.
credential_ids
OPTIONAL. A non-empty array of strings each referencing a Credential requested by the Verifier for which the attestation is relevant. Each string matches the id field in a DCQL Credential Query. If omitted, the attestation is relevant to all requested Credentials.
request_uri_method (OpenID4VP)
OPTIONAL [and MUST NOT be present if a request_uri parameter is not present.]. A string determining the HTTP method to be used when the request_uri parameter is included in the same request. Two case-sensitive valid values are defined in this specification: get and post. If request_uri_method value is get, the Wallet MUST send the request to retrieve the Request Object using the HTTP GET method ... If request_uri_method value is post, a supporting Wallet MUST send the request using the HTTP POST method ... If the request_uri_method parameter is not present, the Wallet MUST process the request_uri parameter as defined in RFC9101. Wallets not supporting the post method will send a GET request to the Request URI ... If the Verifier set the request_uri_method parameter value to post and there is no other means to convey its capabilities to the Wallet, it SHOULD add the client_metadata parameter to the Authorization Request. This enables the Wallet to assess the Verifier's capabilities, allowing it to transmit only the relevant capabilities through the wallet_metadata parameter in the Request URI POST request.
response_mode (@oauth-responses; @oidc-response-type-encoding; OpenID4VP)
OPTIONAL [but NOT RECOMMENDED when it is the default mode for the specified Response Type; yet REQUIRED in OpenID4VP]. Informs the Authorization Server of the mechanism to be used for returning parameters from the Authorization Endpoint. (OpenID4VP: The new Response Mode direct_post[indicates] the Wallet to send the response to the Verifier via an HTTPS connection ... It can also be used to request that the resulting response be encrypted.)
<!-- ?? delegation (@draft-li-oauth-delegated-authorization)
REQUIRED [for delegation token requests]. A true [boolean] parameter ... to indicate that the client is requesting a delegation token instead of an OAuth 2.0 access token. -->
state (RFC 6749; OIDC; OpenID4VP)
RECOMMENDED [REQUIRED in OpenID4VP without Holder Binding Proofs (since then nonce is not returned in the response)]. An opaque value used by the client to maintain state between the request and callback. The authorization server includes this value when redirecting the user agent back to the client. (OIDC: Typically, Cross-Site Request Forgery (CSRF, XSRF) mitigation is done by cryptographically binding the value of this parameter with a browser cookie.) (OpenID4VP: state values MUST only contain ASCII URL safe characters.)
issuer_state (OpenID4VCI)
OPTIONAL. String value identifying a certain processing context at the Credential Issuer. A value for this parameter is typically passed in a Credential Offer from the Credential Issuer to the Wallet.
nonce (OIDC; OpenID4VP)
OPTIONAL [REQUIRED for implicit or hybrid flows; and for OpenID4VP with Holder Binding Proofs]. String value used to associate a Client session with an ID Token, and to mitigate replay attacks. The value is passed through unmodified from the Authentication Request to the ID Token. Sufficient entropy must be present in the nonce values used to prevent attackers from guessing values. (OpenID4VP: A case-sensitive String representing a value to securely bind Verifiable Presentation(s) provided by the Wallet to the particular transaction. The Verifier MUST create a fresh, cryptographically random number with sufficient entropy for every Authorization Request, store it with its current session, and pass it in the nonce Authorization Request Parameter to the Wallet ... Values MUST only contain ASCII URL safe characters.)
transaction_data (OpenID4VP)
OPTIONAL. Non-empty array of strings, where each string is a base64url-encoded JSON object that contains a typed parameter set with details about the transaction that the Verifier is requesting the End-User to authorize.
type
REQUIRED. String that identifies the type of transaction data. This value determines parameters that can be included in the transaction_data object.
credential_ids
REQUIRED. Non-empty array of strings each referencing a Credential requested by the Verifier that can be used to authorize this transaction. The string matches the id field in the DCQL Credential Query. If there is more than one element in the array, the Wallet MUST use only one of the referenced Credentials for transaction authorization. Each document specifying details of a transaction data type defines what Credential(s) can be used to authorize those transactions. Those Credential(s) can be issued specifically for the transaction authorization use case or re-use existing Credential(s) used for user identification.

JWT ??

(@openid-connect-core-1_0: Three representations of Claim Values are defined by this specification: Normal Claims ... that are directly asserted by the OpenID Provider; Aggregated Claims ... that are asserted by a Claims Provider other than the OpenID Provider but are returned by OpenID Provider; Distributed Claims ... that are asserted by a Claims Provider other than the OpenID Provider but are returned as references by the OpenID Provider. Normal Claims must be supported. Support for Aggregated Claims and Distributed Claims is optional ... Normal Claims are represented as members in a JSON object. The Claim Name is the member name and the Claim Value is the member value ... Aggregated and distributed Claims are represented by using special _claim_names and _claim_sources members of the JSON object containing the Claims.)

_claim_names (OIDC)
OPTIONAL. JSON object whose member names are the Claim Names for the Aggregated and Distributed Claims. The member values are references to the member names in the _claim_sources member from which the actual Claim Values can be retrieved.
_claim_sources (OIDC)
OPTIONAL. JSON object whose member names are referenced by the member values of the _claim_names member. The member values contain sets of Aggregated Claims or reference locations for Distributed Claims. The member values can have one of the following formats depending on whether it is providing Aggregated or Distributed Claims:
  • Aggregated Claims: [A] JSON object that must contain the JWT member ... Other members may be present.

    JWT
    REQUIRED. A JWT that must contain all the Claims in the _claim_names object that references the corresponding _claim_sources member.
  • Distributed Claims: [A] JSON object that contains the following members and values.

    endpoint
    REQUIRED. [An] OAuth 2.0 resource endpoint [URL] from which the associated Claim can be retrieved ... as a JWT. (@openid-connect-4-identity-assurance: The URL that is the value of the endpoint element in any distributed _claim_source sub-element shall use the https URI scheme and the JWT returned should not be accessible via any other URI scheme.)
    access_token
    OPTIONAL. [An] access token enabling retrieval of the Claims from the endpoint URL by using the OAuth 2.0 Bearer Token Usage [RFC6750] protocol. Claims should be requested using the Authorization Request header field and Claims Providers must support this method. If the Access Token is not available, RPs may need to retrieve the Access Token out of band or use an Access Token that was pre-negotiated between the Claims Provider and RP, or the Claims Provider may reauthenticate the End-User and/or reauthorize the RP.
A sub (subject) Claim should not be returned from the Claims Provider [or contained in the JWT] unless its value is an identifier for the End-User at the Claims Provider (and not for the OpenID Provider or another party). An iss (issuer) Claim should be included in any JWT issued by a Claims Provider so that the Claims Provider's keys can be retrieved for signature validation of the JWT. (@openid-connect-4-identity-assurance: For aggregated or distributed claims, every assertion provided by the external claims source shall contain: a typ header parameter with the value provided-claims+jwt, an iss claim identifying the claims source, a sub claim identifying the end-user in the context of the claim source, and a verified_claims element containing one or more verified_claims objects. To ensure that assertions cannot be confused with OpenID Connect ID Tokens, assertions shall not contain: an exp claim, or an aud claim.)
verified_claims (@openid-connect-4-identity-assurance-1_0; cf. request)
OPTIONAL. [An] element in an aggregated or distributed claims object [which has] one of the following forms: a JSON string referring to a certain claim source (as defined in OpenID); a JSON array of strings referring to the different claim sources; a JSON object composed of sub-elements formatted with the syntax as defined for requesting verified_claims where the name of each object is a name for the respective claim source. Every such named object contains sub-objects called claims and verification expressing data provided by the respective claims source. This allows the RP to look ahead before it actually requests distributed claims in order to prevent extra time, cost, data collisions, etc. caused by these requests.

3 Mapping GPM to OpenID