| Description | Tests primarily 'happy' flows, using two different OAuth2 clients (and hence authenticating the user twice), and uses different variations on request objects, registered redirect uri (both redirect uris must be pre-registered as shown in the instructions). It also tests that TLS Certificate-Bound access tokens (required by the FAPI-RW spec) are correctly implemented.
This version uses Pushed Authorisation Requests to create authorisation objects. |
|---|
| Steps | Client 1 Initiation: These steps are conducted using the first Client registered to the Holder and occur using Client 1βs MTLS certificate. - Retrieve Discovery Document and parse required endpoints
- Retrieve JWKS Key Set using jwksuri attribute
- Validate JWKS keys are valid JSON, contain the required fields and are correctly encoded using unpadded base64url
- Verify all JWKS keys contain kids
- Verify all JWKS keys do not contain any private or symmetric keys
- Verify all JWKS keys are of at least 2048 bit in length
- Verify JWKS contains at least one key with alg of PS256 or ES256.
- Create authorisation request with content of (roughly) similar to:
{
"aud": "https://localmachine:8103/local-conformance-holder",
"scope": "openid profile bank:accounts.basic:read bank:accounts.detail:read",
"claims": {
"sharingduration": 7776000,
"id_token": {
"acr": {
"value": "urn:cds.au:cdr:2",
"essential": true
}
}
},
"iss": "4unxLnjKSMQCTRYU1X1Bed",
"response_type": "code id_token",
"redirect_uri": "https://localhost.emobix.co.uk:8443/test/a/wikkitgate/callback",
"state": "LwI4CZHGDm",
"exp": 1603332124,
"nonce": "vVqWbuseiL",
"client_id": "4unxLnjKSMQCTRYU1X1Bed"
}- Sign the authorisation request using PS256.
- Create a client assertion containing iss, sub, jti , iat, exp and aud
- Sign the client assertion using PS256
- Dispatch the authorisation request (9) using the client assertion (11) to the pushedauthorizationrequestendpoint specified within the discovery document
- Verify that the PAR endpoint returns HTTP Status 201 with a valid requesturi returned
- Verify that the content of the request uri meets entropy of at least 128-bits
- Initiate a browser initiation to the authorize endpoint specifying:
- requesturi retrieved in (13)
- clientid matching the iss of the authorisation request
- redirecturi matching the authorisation request
- scope specifying scopes matching the authorisation request
- responsetype of code idtoken
- Proceed through authorisation flow within the browser
- Receive redirect request at the redirecturi specified and extract the fragment content and verify the following:
- state is not present in the url query string (but is present in the fragment)
- Verify that the fragment contained in the redirect response contains only:
- Verify that code is of sufficient length and has at least 128-bit entropy
- Decrypt idtoken using encryption key for client and verify signature
- Validate the idtoken by verifying iss, aud, exp, iat, authtime, acr, sub and nbf claims
- Verify nonce within decrypted idtoken matches nonce specified in (8)
- Verify acr returned matches the one request (normally urn:cds.au:cdr:2)
- Extract shash and chash from ID Token
- Verify chash is correctly validated against specified code
- Verify shash is correctly validated against specified state
- Create a client assertion for submission to the token endpoint
- Perform POST /token using generated client assertion from (27), granttype of authorizationcode, code retrieved in (18) and redirecturi specified in (15)
- Verify token response contains expiresin attribute and it is in the future
- Verify token response contains accesstoken and refreshtoken
- Verify that tokens meet at least 128-bit entropy
- Verify idtoken contains a nonce that matches the one checked in (8)
- Verify idtoken has acr matching the one requested
- Utilise accesstoken to make request to the /banking/accounts endpoint containing:
- x-fapi-customer-ip-address
- x-fapi-interaction-id
- Verify (34) is
- Conducted on either TLS 1.2+
- Conducted using permitted ciphers
- Returned the x-fapi-interaction-id specified in 34b
Client 2:
Using the second client registration and second client MTLS certificate conduct steps (1) to (35) as outlined for Client 1 using Client 2 credentials.
Token Mixup Verification- Use the token retrieved for Client 1 using Client 2βs MTLS certificate
|
|---|