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-23T10:52:40Z

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

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'], '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#WLZrs5ZB0BWRMPro"
    ],
    "response_types": [
        "code id_token"
    ],
    "token_endpoint_auth_method": "client_secret_post"
}
0.237 http response url:https://oidc-certification.ory.sh:8443/clients status_code:201
0.237 RegistrationResponse {
    "client_id": "ffa257cc-7836-4f05-9d44-bb5540e3761a",
    "client_secret": "5XyfzEIlj9R3",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "id": "ffa257cc-7836-4f05-9d44-bb5540e3761a",
    "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#WLZrs5ZB0BWRMPro"
    ],
    "response_types": [
        "code id_token"
    ],
    "scope": "openid offline offline_access profile email address phone",
    "token_endpoint_auth_method": "client_secret_post",
    "userinfo_signed_response_alg": "none"
}
0.238 phase <--<-- 3 --- AsyncAuthn -->-->
0.238 AuthorizationRequest {
    "client_id": "ffa257cc-7836-4f05-9d44-bb5540e3761a",
    "nonce": "TgbKjihOnmvcocC5",
    "redirect_uri": "https://op.certification.openid.net:61353/authz_cb",
    "response_type": "code id_token",
    "scope": "openid",
    "state": "fVfcyMeK1JbGCdp3"
}
0.238 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=ffa257cc-7836-4f05-9d44-bb5540e3761a&state=fVfcyMeK1JbGCdp3&response_type=code+id_token&nonce=TgbKjihOnmvcocC5
0.238 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=ffa257cc-7836-4f05-9d44-bb5540e3761a&state=fVfcyMeK1JbGCdp3&response_type=code+id_token&nonce=TgbKjihOnmvcocC5
2.357 http args {}
2.527 response URL with fragment
2.528 response code=Uv1WRHKOToE2zPWigvY6QouliyvPSsGLSgezrhK3QmA.Cn5IctMDd6zsDp3bOdAgrT2CKuIZ8Z4U5T6RGeZpcRE&id_token=eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzowYWNmNmM2NC00ZDU1LTQ4ODgtYWJiOS1iMmEzZjY2MWVlN2YiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiZmZhMjU3Y2MtNzgzNi00ZjA1LTlkNDQtYmI1NTQwZTM3NjFhIl0sImF1dGhfdGltZSI6MTUyOTc1MDk3NSwiY19oYXNoIjoiTmU3X1JxOVV2ZWRjMFJLUkVPcW83dyIsImV4cCI6MTUyOTc1NDc1OSwiaWF0IjoxNTI5NzUxMTU5LCJpc3MiOiJodHRwczovL29pZGMtY2VydGlmaWNhdGlvbi5vcnkuc2g6ODQ0My8iLCJqdGkiOiJiY2QwNDNhNy1lMWY2LTQ3MjAtODFhMC03MTRmM2U1YTkwYzAiLCJub25jZSI6IlRnYktqaWhPbm12Y29jQzUiLCJyYXQiOjE1Mjk3NTExNTgsInN1YiI6ImZvb0BiYXIuY29tIn0. &state=fVfcyMeK1JbGCdp3
2.528 response {'id_token': 'eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzowYWNmNmM2NC00ZDU1LTQ4ODgtYWJiOS1iMmEzZjY2MWVlN2YiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiZmZhMjU3Y2MtNzgzNi00ZjA1LTlkNDQtYmI1NTQwZTM3NjFhIl0sImF1dGhfdGltZSI6MTUyOTc1MDk3NSwiY19oYXNoIjoiTmU3X1JxOVV2ZWRjMFJLUkVPcW83dyIsImV4cCI6MTUyOTc1NDc1OSwiaWF0IjoxNTI5NzUxMTU5LCJpc3MiOiJodHRwczovL29pZGMtY2VydGlmaWNhdGlvbi5vcnkuc2g6ODQ0My8iLCJqdGkiOiJiY2QwNDNhNy1lMWY2LTQ3MjAtODFhMC03MTRmM2U1YTkwYzAiLCJub25jZSI6IlRnYktqaWhPbm12Y29jQzUiLCJyYXQiOjE1Mjk3NTExNTgsInN1YiI6ImZvb0BiYXIuY29tIn0. ', 'state': 'fVfcyMeK1JbGCdp3', 'code': 'Uv1WRHKOToE2zPWigvY6QouliyvPSsGLSgezrhK3QmA.Cn5IctMDd6zsDp3bOdAgrT2CKuIZ8Z4U5T6RGeZpcRE'}
2.615 AuthorizationResponse {
    "code": "Uv1WRHKOToE2zPWigvY6QouliyvPSsGLSgezrhK3QmA.Cn5IctMDd6zsDp3bOdAgrT2CKuIZ8Z4U5T6RGeZpcRE",
    "id_token": {
        "aud": [
            "ffa257cc-7836-4f05-9d44-bb5540e3761a"
        ],
        "auth_time": 1529750975,
        "c_hash": "Ne7_Rq9Uvedc0RKREOqo7w",
        "exp": 1529754759,
        "iat": 1529751159,
        "iss": "https://oidc-certification.ory.sh:8443/",
        "jti": "bcd043a7-e1f6-4720-81a0-714f3e5a90c0",
        "nonce": "TgbKjihOnmvcocC5",
        "rat": 1529751158,
        "sub": "foo@bar.com"
    },
    "state": "fVfcyMeK1JbGCdp3"
}
2.615 phase <--<-- 4 --- AccessToken -->-->
2.615 --> request op_args: {'state': 'fVfcyMeK1JbGCdp3', 'authn_method': 'client_secret_post'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61353/authz_cb'}
2.615 do_access_token_request kwargs:{'request_args': {'grant_type': 'authorization_code', 'state': 'fVfcyMeK1JbGCdp3', 'code': 'Uv1WRHKOToE2zPWigvY6QouliyvPSsGLSgezrhK3QmA.Cn5IctMDd6zsDp3bOdAgrT2CKuIZ8Z4U5T6RGeZpcRE', 'redirect_uri': 'https://op.certification.openid.net:61353/authz_cb', 'client_id': 'ffa257cc-7836-4f05-9d44-bb5540e3761a'}, 'state': 'fVfcyMeK1JbGCdp3', 'authn_method': 'client_secret_post'}
2.615 AccessTokenRequest {
    "client_id": "ffa257cc-7836-4f05-9d44-bb5540e3761a",
    "client_secret": "5XyfzEIlj9R3",
    "code": "Uv1WRHKOToE2zPWigvY6QouliyvPSsGLSgezrhK3QmA.Cn5IctMDd6zsDp3bOdAgrT2CKuIZ8Z4U5T6RGeZpcRE",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61353/authz_cb",
    "state": "fVfcyMeK1JbGCdp3"
}
2.615 request_url https://oidc-certification.ory.sh:8443/oauth2/token
2.615 request_http_args {'headers': {'Content-Type': 'application/x-www-form-urlencoded'}}
2.615 request code=Uv1WRHKOToE2zPWigvY6QouliyvPSsGLSgezrhK3QmA.Cn5IctMDd6zsDp3bOdAgrT2CKuIZ8Z4U5T6RGeZpcRE&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61353%2Fauthz_cb&client_id=ffa257cc-7836-4f05-9d44-bb5540e3761a&grant_type=authorization_code&state=fVfcyMeK1JbGCdp3&client_secret=5XyfzEIlj9R3
2.831 http response url:https://oidc-certification.ory.sh:8443/oauth2/token status_code:200
2.832 response {'id_token': 'eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzowYWNmNmM2NC00ZDU1LTQ4ODgtYWJiOS1iMmEzZjY2MWVlN2YiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiZmZhMjU3Y2MtNzgzNi00ZjA1LTlkNDQtYmI1NTQwZTM3NjFhIl0sImF1dGhfdGltZSI6MTUyOTc1MDk3NSwiY19oYXNoIjoiTmU3X1JxOVV2ZWRjMFJLUkVPcW83dyIsImV4cCI6MTUyOTc1NDc1OSwiaWF0IjoxNTI5NzUxMTYwLCJpc3MiOiJodHRwczovL29pZGMtY2VydGlmaWNhdGlvbi5vcnkuc2g6ODQ0My8iLCJqdGkiOiJiODE4MzA1NS04YTU5LTRlNDUtOGU0Yy0xMjc5NTc1NDFhNGEiLCJub25jZSI6IlRnYktqaWhPbm12Y29jQzUiLCJyYXQiOjE1Mjk3NTExNTgsInN1YiI6ImZvb0BiYXIuY29tIn0. ', 'token_type': 'bearer', 'expires_in': 3599, 'access_token': 'ncAMt5VsqxULb_vO5fIu1vYKPwT8NC2_1gkxHIDXz74.HX2Rs6YvzDa6Kcy_FsoTxyylhWCB9-7JC6elFHBz2Tw', 'scope': 'openid'}
2.835 AccessTokenResponse {
    "access_token": "ncAMt5VsqxULb_vO5fIu1vYKPwT8NC2_1gkxHIDXz74.HX2Rs6YvzDa6Kcy_FsoTxyylhWCB9-7JC6elFHBz2Tw",
    "expires_in": 3599,
    "id_token": {
        "aud": [
            "ffa257cc-7836-4f05-9d44-bb5540e3761a"
        ],
        "auth_time": 1529750975,
        "c_hash": "Ne7_Rq9Uvedc0RKREOqo7w",
        "exp": 1529754759,
        "iat": 1529751160,
        "iss": "https://oidc-certification.ory.sh:8443/",
        "jti": "b8183055-8a59-4e45-8e4c-127957541a4a",
        "nonce": "TgbKjihOnmvcocC5",
        "rat": 1529751158,
        "sub": "foo@bar.com"
    },
    "scope": "openid",
    "token_type": "bearer"
}
2.835 phase <--<-- 5 --- Done -->-->
2.835 end 
2.836 assertion VerifyResponse
2.836 condition verify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
2.836 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
