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.
Mapping OpenID to GPM
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:
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.