Test tool version: 2.1.3
Issuer: https://oidc-certification.ory.sh:8443/
Profile: []
Test ID: OP-ClientAuth-SecretPost-Dynamic
Test description: Access token request with client_secret_post authentication
Timestamp: 2018-06-23T11:00:33Z

============================================================

Trace output

0.0 phase <--<-- 0 --- Webfinger -->-->
0.0 not expected to do WebFinger
0.0 phase <--<-- 1 --- Discovery -->-->
0.0 provider_config kwargs:{'issuer': 'https://oidc-certification.ory.sh:8443/'}
0.074 http response url:https://oidc-certification.ory.sh:8443/.well-known/openid-configuration status_code:200
0.076 ProviderConfigurationResponse {
    "authorization_endpoint": "https://oidc-certification.ory.sh:8443/oauth2/auth",
    "claims_parameter_supported": false,
    "claims_supported": [
        "sub"
    ],
    "grant_types_supported": [
        "authorization_code",
        "implicit",
        "client_credentials",
        "refresh_token"
    ],
    "id_token_signing_alg_values_supported": [
        "RS256"
    ],
    "issuer": "https://oidc-certification.ory.sh:8443/",
    "jwks_uri": "https://oidc-certification.ory.sh:8443/.well-known/jwks.json",
    "registration_endpoint": "https://oidc-certification.ory.sh:8443/clients",
    "request_parameter_supported": true,
    "request_uri_parameter_supported": true,
    "require_request_uri_registration": true,
    "response_modes_supported": [
        "query",
        "fragment"
    ],
    "response_types_supported": [
        "code",
        "code id_token",
        "id_token",
        "token id_token",
        "token",
        "token id_token code"
    ],
    "scopes_supported": [
        "offline",
        "openid"
    ],
    "subject_types_supported": [
        "pairwise",
        "public"
    ],
    "token_endpoint": "https://oidc-certification.ory.sh:8443/oauth2/token",
    "token_endpoint_auth_methods_supported": [
        "client_secret_post",
        "client_secret_basic",
        "private_key_jwt",
        "none"
    ],
    "userinfo_endpoint": "https://oidc-certification.ory.sh:8443/userinfo",
    "userinfo_signing_alg_values_supported": [
        "none",
        "RS256"
    ],
    "version": "3.0"
}
0.076 phase <--<-- 2 --- Registration -->-->
0.076 register kwargs:{'application_name': 'OIC test tool', 'token_endpoint_auth_method': 'client_secret_post', 'contacts': ['roland@example.com'], 'redirect_uris': ['https://op.certification.openid.net:61353/authz_cb'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61353/logout'], 'jwks_uri': 'https://op.certification.openid.net:61353/static/jwks_61353.json', 'grant_types': ['authorization_code', 'implicit'], 'response_types': ['code id_token token'], 'url': 'https://oidc-certification.ory.sh:8443/clients', 'application_type': 'web'}
0.076 RegistrationRequest {
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "jwks_uri": "https://op.certification.openid.net:61353/static/jwks_61353.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61353/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61353/authz_cb"
    ],
    "request_uris": [
        "https://op.certification.openid.net:61353/requests/e3ecc141f5419bd33d25d760861d32323144d583feaf26eb1b5cbf20147608b9#TO1tEDO7TpFOD1KW"
    ],
    "response_types": [
        "code id_token token"
    ],
    "token_endpoint_auth_method": "client_secret_post"
}
0.243 http response url:https://oidc-certification.ory.sh:8443/clients status_code:201
0.244 RegistrationResponse {
    "client_id": "9a8846f5-68bc-40d4-8b1d-901834914d78",
    "client_secret": "_pHwNCTUrkUZ",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "id": "9a8846f5-68bc-40d4-8b1d-901834914d78",
    "jwks_uri": "https://op.certification.openid.net:61353/static/jwks_61353.json",
    "public": false,
    "redirect_uris": [
        "https://op.certification.openid.net:61353/authz_cb"
    ],
    "request_uris": [
        "https://op.certification.openid.net:61353/requests/e3ecc141f5419bd33d25d760861d32323144d583feaf26eb1b5cbf20147608b9#TO1tEDO7TpFOD1KW"
    ],
    "response_types": [
        "code id_token token"
    ],
    "scope": "openid offline offline_access profile email address phone",
    "token_endpoint_auth_method": "client_secret_post",
    "userinfo_signed_response_alg": "none"
}
0.244 phase <--<-- 3 --- AsyncAuthn -->-->
0.245 AuthorizationRequest {
    "client_id": "9a8846f5-68bc-40d4-8b1d-901834914d78",
    "nonce": "iOU6t78iy5ME9WDC",
    "redirect_uri": "https://op.certification.openid.net:61353/authz_cb",
    "response_type": "code id_token token",
    "scope": "openid",
    "state": "rGJN1UBhNG22xdNJ"
}
0.245 redirect url https://oidc-certification.ory.sh:8443/oauth2/auth?scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61353%2Fauthz_cb&client_id=9a8846f5-68bc-40d4-8b1d-901834914d78&state=rGJN1UBhNG22xdNJ&response_type=code+id_token+token&nonce=iOU6t78iy5ME9WDC
0.245 redirect https://oidc-certification.ory.sh:8443/oauth2/auth?scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61353%2Fauthz_cb&client_id=9a8846f5-68bc-40d4-8b1d-901834914d78&state=rGJN1UBhNG22xdNJ&response_type=code+id_token+token&nonce=iOU6t78iy5ME9WDC
2.348 http args {}
2.516 response URL with fragment
2.516 response access_token=uQn18Uj8YMY5wrMCJUUVnb64RVyWOVF5nJ2xjG494y4.nxLR332UsNvoe-8PSMxZcoM3f-eraWbVKeIfXPyco58&code=7ua7izBX6FYD0-0NbwqvQamueMv7Tcr2U1TSYBIShAs.flI3imOE2DOqMjz7D01CS4XXGsvUXdvN_UqTzXin5nk&expires_in=3599&id_token=eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzplMjcyYTc1NS03YWUyLTQ5MGUtODJmNS02MmUwNjc4NjQxYjAiLCJ0eXAiOiJKV1QifQ.eyJhdF9oYXNoIjoiM0RoMzBqV0syYzhXVjRmcHJ0ZmpRQSIsImF1ZCI6WyI5YTg4NDZmNS02OGJjLTQwZDQtOGIxZC05MDE4MzQ5MTRkNzgiXSwiYXV0aF90aW1lIjoxNTI5NzUxNDA5LCJjX2hhc2giOiJHTjVocW5ObkJEN051ODR4bUVtN25nIiwiZXhwIjoxNTI5NzU1MjMzLCJpYXQiOjE1Mjk3NTE2MzMsImlzcyI6Imh0dHBzOi8vb2lkYy1jZXJ0aWZpY2F0aW9uLm9yeS5zaDo4NDQzLyIsImp0aSI6IjUyMjgzZTliLTA5ZDQtNGFhNC1hMmViLTA5ZThiZmM2NzUyZSIsIm5vbmNlIjoiaU9VNnQ3OGl5NU1FOVdEQyIsInJhdCI6MTUyOTc1MTYzMSwic3ViIjoiZm9vQGJhci5jb20ifQ. &scope=openid&state=rGJN1UBhNG22xdNJ&token_type=bearer
2.517 response {'id_token': 'eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzplMjcyYTc1NS03YWUyLTQ5MGUtODJmNS02MmUwNjc4NjQxYjAiLCJ0eXAiOiJKV1QifQ.eyJhdF9oYXNoIjoiM0RoMzBqV0syYzhXVjRmcHJ0ZmpRQSIsImF1ZCI6WyI5YTg4NDZmNS02OGJjLTQwZDQtOGIxZC05MDE4MzQ5MTRkNzgiXSwiYXV0aF90aW1lIjoxNTI5NzUxNDA5LCJjX2hhc2giOiJHTjVocW5ObkJEN051ODR4bUVtN25nIiwiZXhwIjoxNTI5NzU1MjMzLCJpYXQiOjE1Mjk3NTE2MzMsImlzcyI6Imh0dHBzOi8vb2lkYy1jZXJ0aWZpY2F0aW9uLm9yeS5zaDo4NDQzLyIsImp0aSI6IjUyMjgzZTliLTA5ZDQtNGFhNC1hMmViLTA5ZThiZmM2NzUyZSIsIm5vbmNlIjoiaU9VNnQ3OGl5NU1FOVdEQyIsInJhdCI6MTUyOTc1MTYzMSwic3ViIjoiZm9vQGJhci5jb20ifQ. ', 'scope': 'openid', 'code': '7ua7izBX6FYD0-0NbwqvQamueMv7Tcr2U1TSYBIShAs.flI3imOE2DOqMjz7D01CS4XXGsvUXdvN_UqTzXin5nk', 'access_token': 'uQn18Uj8YMY5wrMCJUUVnb64RVyWOVF5nJ2xjG494y4.nxLR332UsNvoe-8PSMxZcoM3f-eraWbVKeIfXPyco58', 'state': 'rGJN1UBhNG22xdNJ', 'expires_in': 3599, 'token_type': 'bearer'}
2.592 AuthorizationResponse {
    "access_token": "uQn18Uj8YMY5wrMCJUUVnb64RVyWOVF5nJ2xjG494y4.nxLR332UsNvoe-8PSMxZcoM3f-eraWbVKeIfXPyco58",
    "code": "7ua7izBX6FYD0-0NbwqvQamueMv7Tcr2U1TSYBIShAs.flI3imOE2DOqMjz7D01CS4XXGsvUXdvN_UqTzXin5nk",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "3Dh30jWK2c8WV4fprtfjQA",
        "aud": [
            "9a8846f5-68bc-40d4-8b1d-901834914d78"
        ],
        "auth_time": 1529751409,
        "c_hash": "GN5hqnNnBD7Nu84xmEm7ng",
        "exp": 1529755233,
        "iat": 1529751633,
        "iss": "https://oidc-certification.ory.sh:8443/",
        "jti": "52283e9b-09d4-4aa4-a2eb-09e8bfc6752e",
        "nonce": "iOU6t78iy5ME9WDC",
        "rat": 1529751631,
        "sub": "foo@bar.com"
    },
    "scope": "openid",
    "state": "rGJN1UBhNG22xdNJ",
    "token_type": "bearer"
}
2.592 phase <--<-- 4 --- AccessToken -->-->
2.592 --> request op_args: {'state': 'rGJN1UBhNG22xdNJ', 'authn_method': 'client_secret_post'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61353/authz_cb'}
2.592 do_access_token_request kwargs:{'request_args': {'grant_type': 'authorization_code', 'state': 'rGJN1UBhNG22xdNJ', 'code': '7ua7izBX6FYD0-0NbwqvQamueMv7Tcr2U1TSYBIShAs.flI3imOE2DOqMjz7D01CS4XXGsvUXdvN_UqTzXin5nk', 'redirect_uri': 'https://op.certification.openid.net:61353/authz_cb', 'client_id': '9a8846f5-68bc-40d4-8b1d-901834914d78'}, 'state': 'rGJN1UBhNG22xdNJ', 'authn_method': 'client_secret_post'}
2.592 AccessTokenRequest {
    "client_id": "9a8846f5-68bc-40d4-8b1d-901834914d78",
    "client_secret": "_pHwNCTUrkUZ",
    "code": "7ua7izBX6FYD0-0NbwqvQamueMv7Tcr2U1TSYBIShAs.flI3imOE2DOqMjz7D01CS4XXGsvUXdvN_UqTzXin5nk",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61353/authz_cb",
    "state": "rGJN1UBhNG22xdNJ"
}
2.592 request_url https://oidc-certification.ory.sh:8443/oauth2/token
2.592 request_http_args {'headers': {'Content-Type': 'application/x-www-form-urlencoded'}}
2.592 request code=7ua7izBX6FYD0-0NbwqvQamueMv7Tcr2U1TSYBIShAs.flI3imOE2DOqMjz7D01CS4XXGsvUXdvN_UqTzXin5nk&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61353%2Fauthz_cb&client_id=9a8846f5-68bc-40d4-8b1d-901834914d78&grant_type=authorization_code&state=rGJN1UBhNG22xdNJ&client_secret=_pHwNCTUrkUZ
2.803 http response url:https://oidc-certification.ory.sh:8443/oauth2/token status_code:200
2.804 response {'id_token': 'eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzplMjcyYTc1NS03YWUyLTQ5MGUtODJmNS02MmUwNjc4NjQxYjAiLCJ0eXAiOiJKV1QifQ.eyJhdF9oYXNoIjoiM0RoMzBqV0syYzhXVjRmcHJ0ZmpRQSIsImF1ZCI6WyI5YTg4NDZmNS02OGJjLTQwZDQtOGIxZC05MDE4MzQ5MTRkNzgiXSwiYXV0aF90aW1lIjoxNTI5NzUxNDA5LCJjX2hhc2giOiJHTjVocW5ObkJEN051ODR4bUVtN25nIiwiZXhwIjoxNTI5NzU1MjMzLCJpYXQiOjE1Mjk3NTE2MzMsImlzcyI6Imh0dHBzOi8vb2lkYy1jZXJ0aWZpY2F0aW9uLm9yeS5zaDo4NDQzLyIsImp0aSI6IjFkYmYxNzYxLWQ3MTYtNDlmNy05NTVjLWI1NzMyZjQxZDBlYSIsIm5vbmNlIjoiaU9VNnQ3OGl5NU1FOVdEQyIsInJhdCI6MTUyOTc1MTYzMSwic3ViIjoiZm9vQGJhci5jb20ifQ. ', 'token_type': 'bearer', 'expires_in': 3599, 'access_token': 'GnNm_5yVe6H0d8AmN6ykDFbZhQgwGT2fotbhD0QuNqo.Kvjmg5j2M3Yhs_tUCoI-9injixymnTTDDmmtEfmVl-Y', 'scope': 'openid'}
2.807 AccessTokenResponse {
    "access_token": "GnNm_5yVe6H0d8AmN6ykDFbZhQgwGT2fotbhD0QuNqo.Kvjmg5j2M3Yhs_tUCoI-9injixymnTTDDmmtEfmVl-Y",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "3Dh30jWK2c8WV4fprtfjQA",
        "aud": [
            "9a8846f5-68bc-40d4-8b1d-901834914d78"
        ],
        "auth_time": 1529751409,
        "c_hash": "GN5hqnNnBD7Nu84xmEm7ng",
        "exp": 1529755233,
        "iat": 1529751633,
        "iss": "https://oidc-certification.ory.sh:8443/",
        "jti": "1dbf1761-d716-49f7-955c-b5732f41d0ea",
        "nonce": "iOU6t78iy5ME9WDC",
        "rat": 1529751631,
        "sub": "foo@bar.com"
    },
    "scope": "openid",
    "token_type": "bearer"
}
2.807 phase <--<-- 5 --- Done -->-->
2.807 end 
2.808 assertion VerifyResponse
2.808 condition verify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
2.808 condition Done: status=OK



============================================================

Conditions

verify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
Done: status=OK



============================================================

RESULT: PASSED
