Skip to content

Commit 2a579ff

Browse files
authored
Merge pull request #147 from oauth-wg/111-fres-attestation
add use_fresh_attestation error type
2 parents 2920234 + 57f58ba commit 2a579ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

draft-ietf-oauth-attestation-based-client-auth.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ To validate an HTTP request which contains the client attestation headers, the r
329329
When validation errors specifically related to the use of client attestations are encountered the following additional error codes are defined for use in either Authorization Server authenticated endpoint error responses (as defined in Section 5.2 of {{RFC6749}}) or Resource Server error responses (as defined in Section 3 of {{RFC6750}}).
330330

331331
- `use_attestation_challenge` MUST be used when the Client Attestation PoP JWT is not using an expected server-provided challenge. When used this error code MUST be accompanied by the `OAuth-Client-Attestation-Challenge` HTTP header field parameter (as described in [](#challenge-header)).
332+
- `use_fresh_attestation` MUST be used when the Client Attestation JWT is deemed to be not fresh enough to be acceptable by the server.
332333
- `invalid_client_attestation` MAY be used in addition to the more general `invalid_client` error code as defined in {{RFC6749}} if the attestation or its proof of possession could not be successfully verified.
333334

334335
In the event of errors due to situations not described above, Authorization and Resource Servers MUST follow the guidance of {{RFC6749}} and {{RFC6750}} or their respective extensions of when to return suitable Error Responses.
@@ -600,6 +601,12 @@ This specification requests registration of the following values in the IANA "OA
600601
* Change Controller: IETF
601602
* Reference: this specification
602603

604+
* Name: use_fresh_attestation
605+
* Usage Location: token error response, resource access error response
606+
* Protocol Extension: OAuth 2.0 Attestation-Based Client Authentication
607+
* Change Controller: IETF
608+
* Reference: this specification
609+
603610
* Name: invalid_client_attestation
604611
* Usage Location: token error response, resource access error response
605612
* Protocol Extension: OAuth 2.0 Attestation-Based Client Authentication
@@ -642,6 +649,7 @@ This section requests registration of the following scheme in the "Hypertext Tra
642649
* clarify `use_attestation_challenge` and add `invalid_client_attestation`
643650
* clarify refresh token binding
644651
* check client_id at PAR endpoint
652+
* added `use_fresh_attestation` as an error to signal that the attestation was not deemed fresh enough by the server
645653
* mandate the defined header fields if the attestation and pop are transferred via header fields
646654

647655
-06

0 commit comments

Comments
 (0)