diff --git a/1.1/openid-4-verifiable-credential-issuance-1_1.md b/1.1/openid-4-verifiable-credential-issuance-1_1.md index a0af675f..c71586b6 100644 --- a/1.1/openid-4-verifiable-credential-issuance-1_1.md +++ b/1.1/openid-4-verifiable-credential-issuance-1_1.md @@ -783,15 +783,25 @@ The response to an Authorization Challenge Request is an HTTP message with the c 3. an error as defined in Section 5.2.2 of [@!I-D.ietf-oauth-first-party-apps], including the additional error codes defined in (#ia-error-response). ### Interaction Required Response {#ia-interaction-required-response} - By setting `error_code` to `insufficient_authorization` in the response with HTTP response code 401 `Unauthorized`, the Authorization Server requests an additional user interaction. In this case, the following keys MUST be present in the response as well: * `interaction_type_required`: REQUIRED. String indicating which type of interaction is required, as defined below. The Authorization Server MUST set this to a value that was included in the `interaction_types_supported` parameter sent by the Wallet. If the Authorization Server cannot fulfill the request using any of the supported types, it MUST reject the request with an Authorization Challenge Error Response, as defined in (#ia-error-response). -* `auth_session`: REQUIRED. As defined in Section 5.2.2 of [@!I-D.ietf-oauth-first-party-apps] If a Wallet receives an `interaction_type_required` value that it does not support, it MUST abort the issuance process. +The Authorization Server MUST provide a mechanism to associate the next request by this Wallet with the ongoing authorization request sequence. +The following key MAY be present in the response to provide such a mechanism: + +* `auth_session`: REQUIRED if specified by the interaction type. String containing a value that allows the Authorization Server to associate subsequent requests by this Wallet with the ongoing authorization request sequence. Wallets SHOULD treat this value as an opaque value. The value returned MUST be distinct for each authorization challenge response. + +A definition of a custom type of interaction MUST include exactly one of the following: + +1. A normative requirement that the `auth_session` key MUST be included in the Interaction Required Response. +2. A definition of a mechanism to associate the next request by the Wallet with the ongoing authorization request sequence. + +The Wallet MUST include the most recently received `auth_session` in follow-up requests to the Authorization Challenge Endpoint. + Additional keys are defined based on the type of interaction, as shown next. #### Require Presentation {#ia-require-presentation} @@ -801,6 +811,8 @@ If `interaction_type_required` is set to `urn:openid:dcp:ia:openid4vp_presentati * The `response_mode` MUST be either `ia_post` for unencrypted responses or `ia_post.jwt` for encrypted responses. When the Wallet receives one of these response modes, it MUST send its response to the same Authorization Challenge Endpoint. * If `expected_origins` is present, it MUST contain only the derived Origin of the Authorization Challenge Endpoint as defined in Section 4 of [@RFC6454]. For example, the derived Origin from `https://example.com/authorize-challenge` is `https://example.com`. +The response MUST include the key `auth_session` to associate the next request by this Wallet with the ongoing authorization request sequence. + The following is a non-normative example of an unsigned Authorization Request: ``` @@ -916,6 +928,8 @@ The Wallet MUST only use a `request_uri` value once. Authorization servers SHOULD treat `request_uri` values as one-time use but MAY allow for duplicate requests due to a user reloading/refreshing their user agent. An expired request_uri MUST be rejected as invalid. The Authorization Server MAY include the `expires_in` key as defined in [@!RFC9126]. +Since the `request_uri` allows the Authorization Server to associate the Authorization Request with the ongoing authorization request sequence, the Authorization Server MUST omit `auth_session` parameter in the response. The `auth_session` will be returned in the redirect back to the Wallet if required. + Non-normative Example: ``` @@ -953,6 +967,7 @@ It is RECOMMENDED to use this extension point instead of modifying the OAuth pro See (#ia-security) for additional security considerations. In the following non-normative example, this extension point is used to read the Betelgeuse Intergalactic ID card through an NFC interface in the Wallet. A token called `biic_token` is used to start the process. +It is assumed that the `biic_token` is used by the Authorization Server to associate the next request by this Wallet with the ongoing authorization request sequence, and no `auth_session` is thus needed. ``` HTTP/1.1 401 Unauthorized