Test Info

Issuerhttps://oidc-conformance.ping-eng.com:9031
Profile[]
Test IDOP-ClientAuth-SecretPost-Dynamic
Test descriptionAccess token request with client_secret_post authentication
Timestamp2018-09-20T18:43:13Z

Conditions


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

Trace Output

0.0phase<--<-- 0 --- Webfinger -->-->
0.0not expected to doWebFinger
0.0phase<--<-- 1 --- Discovery -->-->
0.0not expected to doDynamic discovery
0.0phase<--<-- 2 --- Registration -->-->
0.0register
kwargs:{'response_types': ['code'], 'grant_types': ['authorization_code'], 'application_name': 'OIC test tool', 'application_type': 'web', 'redirect_uris': ['https://op.certification.openid.net:61401/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61401/logout'], 'url': 'https://oidc-conformance.ping-eng.com:9031/as/clients.oauth2', 'jwks_uri': 'https://op.certification.openid.net:61401/static/jwks_61401.json', 'token_endpoint_auth_method': 'client_secret_post'}
0.001RegistrationRequest
{
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61401/static/jwks_61401.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61401/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61401/authz_cb"
    ],
    "request_uris": [
        "https://op.certification.openid.net:61401/requests/876669ef2b3891075309a06e00b98e6ace4cfca108af01becb9a804fff95d8c4#pD9bJeVm5T6vHvTD"
    ],
    "response_types": [
        "code"
    ],
    "token_endpoint_auth_method": "client_secret_post"
}
0.392http response
url:https://oidc-conformance.ping-eng.com:9031/as/clients.oauth2 status_code:201
0.393RegistrationResponse
{
    "client_id": "dc-8LtrZo36O208RiyeOAV3Qr",
    "client_name": "dc-8LtrZo36O208RiyeOAV3Qr",
    "client_secret": "GyxdwpX5XtnInvnNUXXTDX",
    "client_secret_expires_at": 0,
    "grant_access_session_revocation_api": false,
    "grant_types": [
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61401/static/jwks_61401.json",
    "persistent_grant_expiration_type": "server_default",
    "pingaccess_logout_capable": false,
    "redirect_uris": [
        "https://op.certification.openid.net:61401/authz_cb"
    ],
    "refresh_token_rolling_policy": "server_default",
    "response_types": [
        "code"
    ],
    "scope": "address phone edit openid profile admin email",
    "token_endpoint_auth_method": "client_secret_post",
    "validate_using_all_eligible_atms": false
}
0.393phase<--<-- 3 --- AsyncAuthn -->-->
0.394AuthorizationRequest
{
    "client_id": "dc-8LtrZo36O208RiyeOAV3Qr",
    "nonce": "ByxlYPduVZjN7KYo",
    "redirect_uri": "https://op.certification.openid.net:61401/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "LcisMKffd6bro3b0"
}
0.394redirect urlhttps://oidc-conformance.ping-eng.com:9031/as/authorization.oauth2?state=LcisMKffd6bro3b0&nonce=ByxlYPduVZjN7KYo&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61401%2Fauthz_cb&client_id=dc-8LtrZo36O208RiyeOAV3Qr
0.394redirecthttps://oidc-conformance.ping-eng.com:9031/as/authorization.oauth2?state=LcisMKffd6bro3b0&nonce=ByxlYPduVZjN7KYo&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61401%2Fauthz_cb&client_id=dc-8LtrZo36O208RiyeOAV3Qr
8.557responseResponse URL with query part
8.558response{'code': 'biD7Jjh2Q-n4D9Lc_QQ14PIFv9QWx2a4ArrsmfHK', 'state': 'LcisMKffd6bro3b0'}
8.558response{'code': 'biD7Jjh2Q-n4D9Lc_QQ14PIFv9QWx2a4ArrsmfHK', 'state': 'LcisMKffd6bro3b0'}
8.558AuthorizationResponse
{
    "code": "biD7Jjh2Q-n4D9Lc_QQ14PIFv9QWx2a4ArrsmfHK",
    "state": "LcisMKffd6bro3b0"
}
8.558phase<--<-- 4 --- AccessToken -->-->
8.559requestop_args: {'state': 'LcisMKffd6bro3b0', 'authn_method': 'client_secret_post'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61401/authz_cb'}
8.559do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61401/authz_cb', 'code': 'biD7Jjh2Q-n4D9Lc_QQ14PIFv9QWx2a4ArrsmfHK', 'state': 'LcisMKffd6bro3b0', 'grant_type': 'authorization_code', 'client_id': 'dc-8LtrZo36O208RiyeOAV3Qr'}, 'state': 'LcisMKffd6bro3b0', 'authn_method': 'client_secret_post'}
8.559AccessTokenRequest
{
    "client_id": "dc-8LtrZo36O208RiyeOAV3Qr",
    "client_secret": "GyxdwpX5XtnInvnNUXXTDX",
    "code": "biD7Jjh2Q-n4D9Lc_QQ14PIFv9QWx2a4ArrsmfHK",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61401/authz_cb",
    "state": "LcisMKffd6bro3b0"
}
8.559request_urlhttps://oidc-conformance.ping-eng.com:9031/as/token.oauth2
8.559request_http_args{'headers': {'Content-Type': 'application/x-www-form-urlencoded'}}
8.559requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61401%2Fauthz_cb&code=biD7Jjh2Q-n4D9Lc_QQ14PIFv9QWx2a4ArrsmfHK&state=LcisMKffd6bro3b0&client_id=dc-8LtrZo36O208RiyeOAV3Qr&client_secret=GyxdwpX5XtnInvnNUXXTDX
9.229http response
url:https://oidc-conformance.ping-eng.com:9031/as/token.oauth2 status_code:200
9.23response{'access_token': 'eyJhbGciOiJSUzI1NiIsImtpZCI6ImsxIn0.eyJzY29wZSI6WyJvcGVuaWQiXSwiY2xpZW50X2lkX25hbWUiOiJkYy04THRyWm8zNk8yMDhSaXllT0FWM1FyIiwiVXNlcm5hbWUiOiJqb2UiLCJPcmdOYW1lIjoiUGluZyBJZGVudGl0eSBDb3Jwb3JhdGlvbiIsImV4cCI6MTUzNzQ3NjE5M30.RYExRxa9VRLDtz8093DA8bpsCbuPNf6AAkpxPB94D2Nd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z0CinjL6JATW47a0Wf7aqA', 'token_type': 'Bearer', 'expires_in': 7199}
9.707AccessTokenResponse
{
    "access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6ImsxIn0.eyJzY29wZSI6WyJvcGVuaWQiXSwiY2xpZW50X2lkX25hbWUiOiJkYy04THRyWm8zNk8yMDhSaXllT0FWM1FyIiwiVXNlcm5hbWUiOiJqb2UiLCJPcmdOYW1lIjoiUGluZyBJZGVudGl0eSBDb3Jwb3JhdGlvbiIsImV4cCI6MTUzNzQ3NjE5M30.RYExRxa9VRLDtz8093DA8bpsCbuPNf6AAkpxPB94D2NdjNAEPMUwB1JBJ03aRL2YbaYvqInTKhnYewatwB0m6sPwGLbfI12Du3c8yitSRIcpvAp_gJbWYlThali_3sQrq53Dj455bC8jGgaI413X30lths0o8bn5IPNq1L4J4DqwYTxENbSQLbSpqlaHCTYZcCU4c8pnFd938RXL4_yrCHNPHBbQUf_tdnIIQw8xT6Hvyk9ToYdKlfBAcQSUwoTGHLdR9n1lUib-FqwBW2vbFrlDu9HSP0-RukP_o4GeC_dPLdOnk9g_YwjPgpgA6kPmMVlDb8PT37hNVPIBEpwc2A",
    "expires_in": 7199,
    "id_token": {
        "aud": [
            "dc-8LtrZo36O208RiyeOAV3Qr"
        ],
        "auth_time": 1537468991,
        "exp": 1537469292,
        "iat": 1537468992,
        "iss": "https://oidc-conformance.ping-eng.com:9031",
        "jti": "lbOW6hfVimb9LFfIrXBVW9",
        "nonce": "ByxlYPduVZjN7KYo",
        "pi.sri": "_Cy3fOw2J4tXLu6yyETBZn6FREQ",
        "s_hash": "WKosqoPLrjNWWQTO8ZPnbA",
        "sub": "joe"
    },
    "token_type": "Bearer"
}
9.707phase<--<-- 5 --- Done -->-->
9.707end
9.708assertionVerifyResponse
9.708conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
9.708conditionDone: status=OK

Result

PASSED