Test Name | fapi1-advanced-final-ensure-client-id-in-token-endpoint |
---|---|
Variant | client_auth_type=private_key_jwt, fapi_auth_request_method=by_value, fapi_profile=openinsurance_brazil, fapi_response_mode=jarm |
Test ID | Tacdy1OZi0IIKfS https://www.certification.openid.net/log-detail.html?public=true&log=Tacdy1OZi0IIKfS |
Created | 2022-10-03T20:24:08.639239Z |
Description | Finansystech Open Insurance |
Test Version | 5.0.4 |
Test Owner | 112635894686881875468 https://accounts.google.com |
Plan ID | UUFu1QlVFjlE2 https://www.certification.openid.net/plan-detail.html?public=true&plan=UUFu1QlVFjlE2 |
Exported From | https://www.certification.openid.net |
Exported By | 112635894686881875468 https://accounts.google.com |
Suite Version | 5.0.4 |
Exported | 2022-10-03 22:07:26 (UTC) |
Status: FINISHED Result: PASSED |
SUCCESS 99 FAILURE 0 WARNING 0 REVIEW 0 INFO 1 |
2022-10-03 20:24:08 |
INFO
|
TEST-RUNNER
Test instance Tacdy1OZi0IIKfS created
|
||||||||||||||
|
2022-10-03 20:24:08 |
SUCCESS
|
CreateRedirectUri
Created redirect URI
|
||
|
2022-10-03 20:24:08 |
|
GetDynamicServerConfiguration
HTTP request
|
||||||||
|
2022-10-03 20:24:08 |
RESPONSE
|
GetDynamicServerConfiguration
HTTP response
|
||||||||
|
2022-10-03 20:24:08 |
SUCCESS
|
GetDynamicServerConfiguration
Successfully parsed server configuration
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
2022-10-03 20:24:08 | SUCCESS |
AddMTLSEndpointAliasesToEnvironment
Added mtls_endpoint_aliases to environment
|
|
2022-10-03 20:24:08 |
SUCCESS
|
CheckServerConfiguration
Found required server configuration keys
|
||
|
2022-10-03 20:24:08 |
|
FetchServerKeys
Fetching server key
|
||
|
2022-10-03 20:24:08 |
|
FetchServerKeys
HTTP request
|
||||||||
|
2022-10-03 20:24:08 |
RESPONSE
|
FetchServerKeys
HTTP response
|
||||||||
|
2022-10-03 20:24:08 |
|
FetchServerKeys
Found JWK set string
|
||
|
2022-10-03 20:24:08 |
SUCCESS
|
FetchServerKeys
Found server JWK set
|
||
|
2022-10-03 20:24:08 |
SUCCESS
|
CheckServerKeysIsValid
Server JWKs is valid
|
||
|
2022-10-03 20:24:08 | SUCCESS |
ValidateServerJWKs
Valid server JWKs: keys are valid JSON, contain the required fields and are correctly encoded using unpadded base64url
|
|
2022-10-03 20:24:08 | SUCCESS |
CheckForKeyIdInServerJWKs
All keys contain kids
|
|
2022-10-03 20:24:08 | SUCCESS |
EnsureServerJwksDoesNotContainPrivateOrSymmetricKeys
Jwks does not contain any private or symmetric keys
|
|
2022-10-03 20:24:08 | SUCCESS |
FAPIEnsureMinimumServerKeyLength
Validated minimum key lengths for server_jwks
|
||
|
2022-10-03 20:24:09 |
SUCCESS
|
GetStaticClientConfiguration
Found a static client object
|
||||||
|
2022-10-03 20:24:09 |
SUCCESS
|
ValidateMTLSCertificatesHeader
MTLS certificates header is valid
|
|
2022-10-03 20:24:09 |
SUCCESS
|
ExtractMTLSCertificatesFromConfiguration
Mutual TLS authentication credentials loaded
|
||||||
|
2022-10-03 20:24:09 | SUCCESS |
ValidateClientJWKsPrivatePart
Valid client JWKs: keys are valid JSON, contain the required fields, the private/public exponents match and are correctly encoded using unpadded base64url
|
|
2022-10-03 20:24:09 |
SUCCESS
|
ExtractJWKsFromStaticClientConfiguration
Extracted client JWK
|
||||
|
2022-10-03 20:24:09 | SUCCESS |
CheckForKeyIdInClientJWKs
All keys contain kids
|
|
2022-10-03 20:24:09 | SUCCESS |
CheckDistinctKeyIdValueInClientJWKs
Distinct 'kid' value in all keys of client_jwks
|
||
|
2022-10-03 20:24:09 | SUCCESS |
FAPIBrazilCheckKeyAlgInClientJWKs
Keys in client JWKS all have permitted 'alg'
|
||
|
2022-10-03 20:24:09 | SUCCESS |
FAPIEnsureMinimumClientKeyLength
Validated minimum key lengths for client_jwks
|
||
|
2022-10-03 20:24:09 |
SUCCESS
|
ValidateMTLSCertificatesAsX509
Mutual TLS authentication cert validated as X.509
|
|
Verify configuration of second client |
2022-10-03 20:24:09 |
SUCCESS
|
GetStaticClient2Configuration
Found a static second client object
|
||||||
|
2022-10-03 20:24:09 |
SUCCESS
|
ValidateMTLSCertificates2Header
MTLS certificates header is valid
|
|
2022-10-03 20:24:09 |
SUCCESS
|
ExtractMTLSCertificates2FromConfiguration
Mutual TLS authentication credentials loaded
|
||||||
|
2022-10-03 20:24:09 | SUCCESS |
ValidateClientJWKsPrivatePart
Valid client JWKs: keys are valid JSON, contain the required fields, the private/public exponents match and are correctly encoded using unpadded base64url
|
|
2022-10-03 20:24:09 |
SUCCESS
|
ExtractJWKsFromStaticClientConfiguration
Extracted client JWK
|
||||
|
2022-10-03 20:24:09 | SUCCESS |
CheckForKeyIdInClientJWKs
All keys contain kids
|
|
2022-10-03 20:24:09 | SUCCESS |
CheckDistinctKeyIdValueInClientJWKs
Distinct 'kid' value in all keys of client_jwks
|
||
|
2022-10-03 20:24:09 | SUCCESS |
FAPIBrazilCheckKeyAlgInClientJWKs
Keys in client JWKS all have permitted 'alg'
|
||
|
2022-10-03 20:24:09 | SUCCESS |
FAPIEnsureMinimumClientKeyLength
Validated minimum key lengths for client_jwks
|
||
|
2022-10-03 20:24:09 |
SUCCESS
|
ValidateMTLSCertificatesAsX509
Mutual TLS authentication cert validated as X.509
|
|
2022-10-03 20:24:09 |
SUCCESS
|
ValidateClientPrivateKeysAreDifferent
Client signing JWKs have different thumbprints
|
||||
|
2022-10-03 20:24:09 |
SUCCESS
|
GetResourceEndpointConfiguration
Found a resource endpoint object
|
||||||
|
2022-10-03 20:24:09 |
SUCCESS
|
SetProtectedResourceUrlToSingleResourceEndpoint
Set protected resource URL
|
||
|
2022-10-03 20:24:09 |
SUCCESS
|
ExtractTLSTestValuesFromResourceConfiguration
Extracted TLS information from resource endpoint
|
||
|
2022-10-03 20:24:09 |
SUCCESS
|
ExtractTLSTestValuesFromOBResourceConfiguration
Extracted TLS information from resource endpoint
|
||||
|
2022-10-03 20:24:09 |
|
fapi1-advanced-final-ensure-client-id-in-token-endpoint
Setup Done
|
|
Use client_credentials grant to obtain Brazil consent |
2022-10-03 20:24:09 |
SUCCESS
|
CreateTokenEndpointRequestForClientCredentialsGrant
Created token endpoint request
|
||||
|
2022-10-03 20:24:09 |
SUCCESS
|
SetConsentsScopeOnTokenEndpointRequest
Set scope parameter to 'consents'
|
||||
|
2022-10-03 20:24:09 |
SUCCESS
|
CreateClientAuthenticationAssertionClaims
Created client assertion claims
|
||||||||||||
|
2022-10-03 20:24:09 |
SUCCESS
|
SignClientAuthenticationAssertion
Signed the client assertion
|
||
|
2022-10-03 20:24:09 |
|
AddClientAssertionToTokenEndpointRequest
Added client assertion
|
||||||||
|
2022-10-03 20:24:09 |
|
CallTokenEndpoint
HTTP request
|
||||||||||
|
2022-10-03 20:24:09 |
RESPONSE
|
CallTokenEndpoint
HTTP response
|
||||||||
|
2022-10-03 20:24:09 |
SUCCESS
|
CallTokenEndpoint
Parsed token endpoint response
|
||||||||
|
2022-10-03 20:24:09 |
SUCCESS
|
CheckIfTokenEndpointResponseError
No error from token endpoint
|
|
2022-10-03 20:24:09 |
SUCCESS
|
CheckForAccessTokenValue
Found an access token
|
||
|
2022-10-03 20:24:09 |
SUCCESS
|
ExtractAccessTokenFromTokenResponse
Extracted the access token
|
||||
|
2022-10-03 20:24:09 | SUCCESS |
ExtractExpiresInFromTokenEndpointResponse
Extracted 'expires_in'
|
||
|
2022-10-03 20:24:09 | SUCCESS |
ValidateExpiresIn
expires_in passed all validation checks
|
||
|
2022-10-03 20:24:09 |
|
CreateEmptyResourceEndpointRequestHeaders
Created empty headers
|
||
|
2022-10-03 20:24:09 |
SUCCESS
|
AddFAPIAuthDateToResourceEndpointRequest
Added x-fapi-auth-date to resource endpoint request headers
|
||
|
2022-10-03 20:24:09 |
SUCCESS
|
FAPIBrazilOpenInsuranceCreateConsentRequest
|
||
|
2022-10-03 20:24:09 |
SUCCESS
|
FAPIBrazilExtractClientMTLSCertificateSubject
Extracted subject from MTLS certificate
|
||||||||
|
2022-10-03 20:24:09 |
|
FAPIBrazilOpenInsuranceVerifyCertificateSubjectOrganizationIdentifier
Certificate organization identifier field contains expected OPIBR
|
||
|
2022-10-03 20:24:09 |
SUCCESS
|
FAPIBrazilAddExpirationToConsentRequest
Added expiration time to consent request
|
||
|
2022-10-03 20:24:09 |
|
CallConsentEndpointWithBearerToken
HTTP request
|
||||||||||
|
2022-10-03 20:24:09 |
RESPONSE
|
CallConsentEndpointWithBearerToken
HTTP response
|
||||||||
|
2022-10-03 20:24:09 |
SUCCESS
|
CallConsentEndpointWithBearerToken
Got a response from the consent endpoint
|
||||||||||
|
2022-10-03 20:24:09 |
SUCCESS
|
EnsureHttpStatusCodeIs201
resource endpoint returned the expected http status
|
||||
|
2022-10-03 20:24:09 |
SUCCESS
|
EnsureContentTypeJson
endpoint_response Content-Type: header is application/json
|
|
2022-10-03 20:24:09 |
SUCCESS
|
FAPIBrazilConsentEndpointResponseValidatePermissions
Consent endpoint response contains expected permissions
|
||||
|
2022-10-03 20:24:09 |
SUCCESS
|
ExtractConsentIdFromConsentEndpointResponse
Extracted the consent id
|
||
|
2022-10-03 20:24:09 | SUCCESS |
CheckForFAPIInteractionIdInResourceResponse
Found x-fapi-interaction-id
|
||
|
2022-10-03 20:24:09 |
SUCCESS
|
FAPIBrazilAddConsentIdToClientScope
Added scope of 'openid consents customers resources consent:urn:finansystech:ac412ad3-fa7c-4ba3-a432-8761d3c47a94' to client's scope
|
||||||
|
Make request to authorization endpoint |
2022-10-03 20:24:09 |
SUCCESS
|
CreateAuthorizationEndpointRequestFromClientInformation
Created authorization endpoint request
|
||||||
|
2022-10-03 20:24:09 |
|
CreateRandomStateValue
Created state value
|
||||
|
2022-10-03 20:24:09 |
SUCCESS
|
AddStateToAuthorizationEndpointRequest
Added state parameter to request
|
||||||||
|
2022-10-03 20:24:09 |
|
CreateRandomNonceValue
Created nonce value
|
||||
|
2022-10-03 20:24:09 |
SUCCESS
|
AddNonceToAuthorizationEndpointRequest
Added nonce parameter to request
|
||||||||||
|
2022-10-03 20:24:09 |
SUCCESS
|
SetAuthorizationEndpointRequestResponseTypeToCode
Added response_type parameter to request
|
||||||||||||
|
2022-10-03 20:24:09 |
SUCCESS
|
SetAuthorizationEndpointRequestResponseModeToJWT
Added response_mode parameter to request
|
||||||||||||||
|
2022-10-03 20:24:09 |
SUCCESS
|
ConvertAuthorizationEndpointRequestToRequestObject
Created request object claims
|
||
|
2022-10-03 20:24:09 | SUCCESS |
AddNbfToRequestObject
Added nbf to request object claims
|
||
|
2022-10-03 20:24:09 | SUCCESS |
AddExpToRequestObject
Added exp to request object claims
|
||
|
2022-10-03 20:24:09 | SUCCESS |
AddAudToRequestObject
Added aud to request object claims
|
||
|
2022-10-03 20:24:09 | SUCCESS |
AddIssToRequestObject
Added iss to request object claims
|
||
|
2022-10-03 20:24:09 | SUCCESS |
AddClientIdToRequestObject
Added client_id to request object claims
|
||
|
2022-10-03 20:24:09 |
SUCCESS
|
SignRequestObject
Signed the request object
|
||||||||
|
2022-10-03 20:24:09 |
|
FAPIBrazilEncryptRequestObject
Encrypted the request object
|
||||||
|
2022-10-03 20:24:09 |
SUCCESS
|
BuildRequestObjectByValueRedirectToAuthorizationEndpoint
Sending to authorization endpoint
|
||
|
2022-10-03 20:24:09 |
REDIRECT
|
fapi1-advanced-final-ensure-client-id-in-token-endpoint
Redirecting to authorization endpoint
|
||
|
2022-10-03 20:24:12 |
INCOMING
|
fapi1-advanced-final-ensure-client-id-in-token-endpoint
Incoming HTTP request to /test/a/finansystech/callback
|
||||||||||||||||||||||
|
2022-10-03 20:24:12 |
SUCCESS
|
CreateRandomImplicitSubmitUrl
Created random implicit submission URL
|
||
|
2022-10-03 20:24:12 |
OUTGOING
|
fapi1-advanced-final-ensure-client-id-in-token-endpoint
Response to HTTP request to test instance Tacdy1OZi0IIKfS
|
||||
|
2022-10-03 20:24:13 |
INCOMING
|
fapi1-advanced-final-ensure-client-id-in-token-endpoint
Incoming HTTP request to /test/a/finansystech/implicit/Vw9BxtOFuapiOH6dwsvL
|
||||||||||||||||||||||
|
2022-10-03 20:24:13 |
OUTGOING
|
fapi1-advanced-final-ensure-client-id-in-token-endpoint
Response to HTTP request to test instance Tacdy1OZi0IIKfS
|
||||||||
|
2022-10-03 20:24:13 |
SUCCESS
|
ExtractImplicitHashToCallbackResponse
implicit_hash is empty
|
|
2022-10-03 20:24:13 |
REDIRECT-IN
|
fapi1-advanced-final-ensure-client-id-in-token-endpoint
Authorization endpoint response captured
|
||||||||||
|
Verify authorization endpoint response |
2022-10-03 20:24:13 | SUCCESS |
ExtractJARMFromURLQuery
Found and parsed the jarm_response from callback_query_params
|
||||||
|
2022-10-03 20:24:13 | SUCCESS |
RejectNonJarmResponsesInUrlQuery
Authorization endpoint response only includes the JARM JWT.
|
|
2022-10-03 20:24:13 |
SUCCESS
|
ExtractAuthorizationEndpointResponseFromJARMResponse
Extracted the authorization response
|
||||||
|
2022-10-03 20:24:13 | SUCCESS |
ValidateJARMResponse
JARM response standard JWT claims are valid
|
|
2022-10-03 20:24:13 |
SUCCESS
|
FAPI1ValidateJarmSigningAlg
JARM response was signed with a permitted algorithm
|
||||
|
2022-10-03 20:24:13 | SUCCESS |
ValidateJARMExpRecommendations
JARM response 'exp' is less than 10 minutes
|
||||
|
2022-10-03 20:24:13 | SUCCESS |
ValidateJARMSignatureUsingKid
jarm_response signature validated
|
||
|
2022-10-03 20:24:13 | SUCCESS |
RejectAuthCodeInUrlQuery
Authorization code is not present in URL query returned from authorization endpoint
|
|
2022-10-03 20:24:13 |
SUCCESS
|
CheckMatchingCallbackParameters
Callback parameters successfully verified
|
|
2022-10-03 20:24:13 | SUCCESS |
RejectStateInUrlQueryForHybridFlow
state is correctly not present in URL query returned from authorization endpoint (as in the hybrid flow it must be returned in the URL fragment/hash only)
|
|
2022-10-03 20:24:13 |
SUCCESS
|
CheckIfAuthorizationEndpointError
No error from authorization endpoint
|
|
2022-10-03 20:24:13 |
SUCCESS
|
ValidateSuccessfulJARMResponseFromAuthorizationEndpoint
authorization endpoint response does not include unexpected parameters
|
||||||
|
2022-10-03 20:24:13 | SUCCESS |
CheckStateInAuthorizationResponse
State in response correctly returned
|
||
|
2022-10-03 20:24:13 | SUCCESS |
ValidateIssInAuthorizationResponse
'iss' parameter in authorization response matches server's issuer value.
|
|
2022-10-03 20:24:13 |
SUCCESS
|
ExtractAuthorizationCodeFromAuthorizationResponse
Found authorization code
|
||
|
2022-10-03 20:24:13 | SUCCESS |
EnsureMinimumAuthorizationCodeLength
Authorization code is of sufficient length
|
||||
|
2022-10-03 20:24:13 | SUCCESS |
EnsureMinimumAuthorizationCodeEntropy
Calculated shannon entropy seems sufficient
|
||||||
|
2022-10-03 20:24:13 |
SUCCESS
|
CreateTokenEndpointRequestForAuthorizationCodeGrant
Created token endpoint request
|
||||||
|
Swapping to Client2 |
2022-10-03 20:24:13 |
|
AddClientIdToTokenEndpointRequest
|
||||||||
|
2022-10-03 20:24:13 |
SUCCESS
|
CreateClientAuthenticationAssertionClaims
Created client assertion claims
|
||||||||||||
|
2022-10-03 20:24:13 |
SUCCESS
|
SignClientAuthenticationAssertion
Signed the client assertion
|
||
|
2022-10-03 20:24:13 |
|
AddClientAssertionToTokenEndpointRequest
Added client assertion
|
||||||||||||
|
2022-10-03 20:24:13 |
|
CallTokenEndpointAndReturnFullResponse
HTTP request
|
||||||||||
|
2022-10-03 20:24:14 |
RESPONSE
|
CallTokenEndpointAndReturnFullResponse
HTTP response
|
||||||||
|
2022-10-03 20:24:14 | SUCCESS |
CallTokenEndpointAndReturnFullResponse
Parsed token endpoint response
|
||||
|
2022-10-03 20:24:14 | SUCCESS |
CheckTokenEndpointHttpStatusIs400Allowing401ForInvalidClientError
Token endpoint http status code was 401 for error 'invalid_client'
|
|
2022-10-03 20:24:14 | SUCCESS |
CheckTokenEndpointReturnedJsonContentType
token_endpoint_response_headers Content-Type: header is application/json
|
|
2022-10-03 20:24:14 | SUCCESS |
CheckErrorFromTokenEndpointResponseErrorInvalidClientOrInvalidGrant
Token Endpoint response error returned expected 'error' of 'invalid_client'
|
||
|
2022-10-03 20:24:14 | SUCCESS |
ValidateErrorFromTokenEndpointResponseError
Token endpoint response error returned valid 'error' field
|
||
|
2022-10-03 20:24:14 | SUCCESS |
CheckErrorDescriptionFromTokenEndpointResponseErrorContainsCRLFTAB
token_endpoint_response 'error_description' field does not include CR/LF/TAB
|
||
|
2022-10-03 20:24:14 | SUCCESS |
ValidateErrorDescriptionFromTokenEndpointResponseError
token_endpoint_response error returned valid 'error_description' field
|
||
|
2022-10-03 20:24:14 | SUCCESS |
ValidateErrorUriFromTokenEndpointResponseError
token_endpoint_response did not include optional 'error_uri' field
|
|
2022-10-03 20:24:14 |
FINISHED
|
fapi1-advanced-final-ensure-client-id-in-token-endpoint
Test has run to completion
|
||
|
2022-10-03 20:24:15 |
|
TEST-RUNNER
Alias has now been claimed by another test
|
||||
|