Test tool version: 2.1.3
Issuer: https://oidc-certification.ory.sh:8443/
Profile: []
Test ID: OP-ClientAuth-Basic-Dynamic
Test description: Access token request with client_secret_basic authentication
Timestamp: 2018-06-23T10:52:36Z

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

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.075 http response url:https://oidc-certification.ory.sh:8443/.well-known/openid-configuration status_code:200
0.077 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.077 phase <--<-- 2 --- Registration -->-->
0.077 register kwargs:{'application_name': 'OIC test tool', 'token_endpoint_auth_method': 'client_secret_basic', '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.077 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#OiyJvR4yVkJM3nRf"
    ],
    "response_types": [
        "code id_token"
    ],
    "token_endpoint_auth_method": "client_secret_basic"
}
0.237 http response url:https://oidc-certification.ory.sh:8443/clients status_code:201
0.238 RegistrationResponse {
    "client_id": "d5eab431-2dfb-473d-8522-bf10654623b8",
    "client_secret": "N_9W~UVpRECK",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "id": "d5eab431-2dfb-473d-8522-bf10654623b8",
    "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#OiyJvR4yVkJM3nRf"
    ],
    "response_types": [
        "code id_token"
    ],
    "scope": "openid offline offline_access profile email address phone",
    "token_endpoint_auth_method": "client_secret_basic",
    "userinfo_signed_response_alg": "none"
}
0.238 phase <--<-- 3 --- AsyncAuthn -->-->
0.239 AuthorizationRequest {
    "client_id": "d5eab431-2dfb-473d-8522-bf10654623b8",
    "nonce": "4rnKjtb151JJSYV4",
    "redirect_uri": "https://op.certification.openid.net:61353/authz_cb",
    "response_type": "code id_token",
    "scope": "openid",
    "state": "xKfCNycWHarQegeT"
}
0.239 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=d5eab431-2dfb-473d-8522-bf10654623b8&state=xKfCNycWHarQegeT&response_type=code+id_token&nonce=4rnKjtb151JJSYV4
0.239 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=d5eab431-2dfb-473d-8522-bf10654623b8&state=xKfCNycWHarQegeT&response_type=code+id_token&nonce=4rnKjtb151JJSYV4
2.239 http args {}
2.411 response URL with fragment
2.411 response code=xN5s-M4iSkj2iZm04r6RtS0zoQSCNRn5zMGw5uHJn_E.AoEIUUSbnRtDi0EeZ6WeDzNz-MwsSKd9gnghdIBdVIY&id_token=eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzowYWNmNmM2NC00ZDU1LTQ4ODgtYWJiOS1iMmEzZjY2MWVlN2YiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiZDVlYWI0MzEtMmRmYi00NzNkLTg1MjItYmYxMDY1NDYyM2I4Il0sImF1dGhfdGltZSI6MTUyOTc1MDk3NSwiY19oYXNoIjoiT2FPRWtNZ3BmZDgxN2U5VVB4NGdFUSIsImV4cCI6MTUyOTc1NDc1NSwiaWF0IjoxNTI5NzUxMTU1LCJpc3MiOiJodHRwczovL29pZGMtY2VydGlmaWNhdGlvbi5vcnkuc2g6ODQ0My8iLCJqdGkiOiI0Y2YzNzMxYy1lODQ5LTQyZTktOTFmNS0yMjU5NTgyZDA1OGEiLCJub25jZSI6IjRybktqdGIxNTFKSlNZVjQiLCJyYXQiOjE1Mjk3NTExNTQsInN1YiI6ImZvb0BiYXIuY29tIn0. &state=xKfCNycWHarQegeT
2.412 response {'id_token': 'eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzowYWNmNmM2NC00ZDU1LTQ4ODgtYWJiOS1iMmEzZjY2MWVlN2YiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiZDVlYWI0MzEtMmRmYi00NzNkLTg1MjItYmYxMDY1NDYyM2I4Il0sImF1dGhfdGltZSI6MTUyOTc1MDk3NSwiY19oYXNoIjoiT2FPRWtNZ3BmZDgxN2U5VVB4NGdFUSIsImV4cCI6MTUyOTc1NDc1NSwiaWF0IjoxNTI5NzUxMTU1LCJpc3MiOiJodHRwczovL29pZGMtY2VydGlmaWNhdGlvbi5vcnkuc2g6ODQ0My8iLCJqdGkiOiI0Y2YzNzMxYy1lODQ5LTQyZTktOTFmNS0yMjU5NTgyZDA1OGEiLCJub25jZSI6IjRybktqdGIxNTFKSlNZVjQiLCJyYXQiOjE1Mjk3NTExNTQsInN1YiI6ImZvb0BiYXIuY29tIn0. ', 'state': 'xKfCNycWHarQegeT', 'code': 'xN5s-M4iSkj2iZm04r6RtS0zoQSCNRn5zMGw5uHJn_E.AoEIUUSbnRtDi0EeZ6WeDzNz-MwsSKd9gnghdIBdVIY'}
2.515 AuthorizationResponse {
    "code": "xN5s-M4iSkj2iZm04r6RtS0zoQSCNRn5zMGw5uHJn_E.AoEIUUSbnRtDi0EeZ6WeDzNz-MwsSKd9gnghdIBdVIY",
    "id_token": {
        "aud": [
            "d5eab431-2dfb-473d-8522-bf10654623b8"
        ],
        "auth_time": 1529750975,
        "c_hash": "OaOEkMgpfd817e9UPx4gEQ",
        "exp": 1529754755,
        "iat": 1529751155,
        "iss": "https://oidc-certification.ory.sh:8443/",
        "jti": "4cf3731c-e849-42e9-91f5-2259582d058a",
        "nonce": "4rnKjtb151JJSYV4",
        "rat": 1529751154,
        "sub": "foo@bar.com"
    },
    "state": "xKfCNycWHarQegeT"
}
2.515 phase <--<-- 4 --- AccessToken -->-->
2.515 --> request op_args: {'state': 'xKfCNycWHarQegeT', 'authn_method': 'client_secret_basic'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61353/authz_cb'}
2.515 do_access_token_request kwargs:{'request_args': {'grant_type': 'authorization_code', 'state': 'xKfCNycWHarQegeT', 'code': 'xN5s-M4iSkj2iZm04r6RtS0zoQSCNRn5zMGw5uHJn_E.AoEIUUSbnRtDi0EeZ6WeDzNz-MwsSKd9gnghdIBdVIY', 'redirect_uri': 'https://op.certification.openid.net:61353/authz_cb', 'client_id': 'd5eab431-2dfb-473d-8522-bf10654623b8'}, 'state': 'xKfCNycWHarQegeT', 'authn_method': 'client_secret_basic'}
2.515 AccessTokenRequest {
    "code": "xN5s-M4iSkj2iZm04r6RtS0zoQSCNRn5zMGw5uHJn_E.AoEIUUSbnRtDi0EeZ6WeDzNz-MwsSKd9gnghdIBdVIY",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61353/authz_cb",
    "state": "xKfCNycWHarQegeT"
}
2.515 request_url https://oidc-certification.ory.sh:8443/oauth2/token
2.515 request_http_args {'headers': {'Authorization': 'Basic ZDVlYWI0MzEtMmRmYi00NzNkLTg1MjItYmYxMDY1NDYyM2I4Ok5fOVclN0VVVnBSRUNL', 'Content-Type': 'application/x-www-form-urlencoded'}}
2.515 request code=xN5s-M4iSkj2iZm04r6RtS0zoQSCNRn5zMGw5uHJn_E.AoEIUUSbnRtDi0EeZ6WeDzNz-MwsSKd9gnghdIBdVIY&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61353%2Fauthz_cb&grant_type=authorization_code&state=xKfCNycWHarQegeT
2.733 http response url:https://oidc-certification.ory.sh:8443/oauth2/token status_code:200
2.734 response {'id_token': 'eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzowYWNmNmM2NC00ZDU1LTQ4ODgtYWJiOS1iMmEzZjY2MWVlN2YiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiZDVlYWI0MzEtMmRmYi00NzNkLTg1MjItYmYxMDY1NDYyM2I4Il0sImF1dGhfdGltZSI6MTUyOTc1MDk3NSwiY19oYXNoIjoiT2FPRWtNZ3BmZDgxN2U5VVB4NGdFUSIsImV4cCI6MTUyOTc1NDc1NSwiaWF0IjoxNTI5NzUxMTU2LCJpc3MiOiJodHRwczovL29pZGMtY2VydGlmaWNhdGlvbi5vcnkuc2g6ODQ0My8iLCJqdGkiOiI3OWRjMDk3Yy1lNzI0LTQ4YzMtOGU2OC02ZDU2YjY4NzhmMTkiLCJub25jZSI6IjRybktqdGIxNTFKSlNZVjQiLCJyYXQiOjE1Mjk3NTExNTQsInN1YiI6ImZvb0BiYXIuY29tIn0. ', 'token_type': 'bearer', 'expires_in': 3599, 'access_token': 'kjPClPaAO--qoAXOCH4RGJyoS0HNnghUhy2RCsuDl0Y.C2UvOofD2SUQY5oSFYw2KXATo-qovAiinrjcwwhBgZ8', 'scope': 'openid'}
2.738 AccessTokenResponse {
    "access_token": "kjPClPaAO--qoAXOCH4RGJyoS0HNnghUhy2RCsuDl0Y.C2UvOofD2SUQY5oSFYw2KXATo-qovAiinrjcwwhBgZ8",
    "expires_in": 3599,
    "id_token": {
        "aud": [
            "d5eab431-2dfb-473d-8522-bf10654623b8"
        ],
        "auth_time": 1529750975,
        "c_hash": "OaOEkMgpfd817e9UPx4gEQ",
        "exp": 1529754755,
        "iat": 1529751156,
        "iss": "https://oidc-certification.ory.sh:8443/",
        "jti": "79dc097c-e724-48c3-8e68-6d56b6878f19",
        "nonce": "4rnKjtb151JJSYV4",
        "rat": 1529751154,
        "sub": "foo@bar.com"
    },
    "scope": "openid",
    "token_type": "bearer"
}
2.738 phase <--<-- 5 --- Done -->-->
2.738 end 
2.738 assertion VerifyResponse
2.738 condition verify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
2.738 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
