Skip to main content

FAPI-RW-ID2-RESPONSE-TYPE-CODE-FAILS-PAR

NameEnsure the holder enforces the code id_token flow by attempting to use a code only response type
CategoryINFOSEC
Execution MethodAUTOMATED (FAPI BASELINE)
Preconditions
Description

This test uses response_type=code in the authorisation request, which (as a JARM response has not been requested) is not permitted in FAPI-RW - only the hybrid flow ('response_type=code id_token') is allowed. The authorization server should show an error message that the response type is unsupported or the request is invalid (a screenshot of which should be uploaded) or the user should be redirected back to the conformance suite with a correct error response, or an error could be returned from the PAR endpoint.

Steps
  1. Execute authorisation as per FAPI-RW-ID2-PAR however specify a response_type of code
  2. It is expected the Holder will reject the PAR setup request with a HTTP Error Status of 400 and a unsupported_response_type or invalid_requestoauth2 error
Inputs
Expected ResultsThe Holder must reject requests requesting a response_type of code