Test Info

Issuerhttps://oidc-conformance.ping-eng.com:9031
Profile[]
Test IDOP-nonce-code
Test descriptionID Token has nonce when requested for code flow
Timestamp2018-09-20T18:45:44Z

Conditions


verify-nonce: status=OK [Verifies that the nonce received in the IDToken is the same as was given in the Authorization Request]
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.001phase<--<-- 2 --- Registration -->-->
0.001register
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'}
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#EGXiuuwElHpKbp0D"
    ],
    "response_types": [
        "code"
    ]
}
0.33http response
url:https://oidc-conformance.ping-eng.com:9031/as/clients.oauth2 status_code:201
0.331RegistrationResponse
{
    "client_id": "dc-pnKhUDcAw2GcnBtO9CUAWz",
    "client_name": "dc-pnKhUDcAw2GcnBtO9CUAWz",
    "client_secret": "7etOSvnsJ0OwkeitnUFRZu",
    "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_basic",
    "validate_using_all_eligible_atms": false
}
0.331phase<--<-- 3 --- AsyncAuthn -->-->
0.331AuthorizationRequest
{
    "client_id": "dc-pnKhUDcAw2GcnBtO9CUAWz",
    "nonce": "godmorgon",
    "redirect_uri": "https://op.certification.openid.net:61401/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "B579hiD0L5I4kn9h"
}
0.332redirect urlhttps://oidc-conformance.ping-eng.com:9031/as/authorization.oauth2?state=B579hiD0L5I4kn9h&nonce=godmorgon&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61401%2Fauthz_cb&client_id=dc-pnKhUDcAw2GcnBtO9CUAWz
0.332redirecthttps://oidc-conformance.ping-eng.com:9031/as/authorization.oauth2?state=B579hiD0L5I4kn9h&nonce=godmorgon&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61401%2Fauthz_cb&client_id=dc-pnKhUDcAw2GcnBtO9CUAWz
6.639responseResponse URL with query part
6.64response{'code': 'NIQY1L3QCvJoiFmVn4wX97cAZafe6-ht_VjiTqRZ', 'state': 'B579hiD0L5I4kn9h'}
6.64response{'code': 'NIQY1L3QCvJoiFmVn4wX97cAZafe6-ht_VjiTqRZ', 'state': 'B579hiD0L5I4kn9h'}
6.64AuthorizationResponse
{
    "code": "NIQY1L3QCvJoiFmVn4wX97cAZafe6-ht_VjiTqRZ",
    "state": "B579hiD0L5I4kn9h"
}
6.64phase<--<-- 4 --- AccessToken -->-->
6.641requestop_args: {'state': 'B579hiD0L5I4kn9h'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61401/authz_cb'}
6.641do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61401/authz_cb', 'code': 'NIQY1L3QCvJoiFmVn4wX97cAZafe6-ht_VjiTqRZ', 'state': 'B579hiD0L5I4kn9h', 'grant_type': 'authorization_code', 'client_id': 'dc-pnKhUDcAw2GcnBtO9CUAWz'}, 'state': 'B579hiD0L5I4kn9h'}
6.641AccessTokenRequest
{
    "code": "NIQY1L3QCvJoiFmVn4wX97cAZafe6-ht_VjiTqRZ",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61401/authz_cb",
    "state": "B579hiD0L5I4kn9h"
}
6.641request_urlhttps://oidc-conformance.ping-eng.com:9031/as/token.oauth2
6.641request_http_args{'headers': {'Authorization': 'Basic ZGMtcG5LaFVEY0F3MkdjbkJ0TzlDVUFXejo3ZXRPU3Zuc0owT3drZWl0blVGUlp1', 'Content-Type': 'application/x-www-form-urlencoded'}}
6.641requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61401%2Fauthz_cb&code=NIQY1L3QCvJoiFmVn4wX97cAZafe6-ht_VjiTqRZ&state=B579hiD0L5I4kn9h
6.987http response
url:https://oidc-conformance.ping-eng.com:9031/as/token.oauth2 status_code:200
6.989response{'access_token': 'eyJhbGciOiJSUzI1NiIsImtpZCI6ImsxIn0.eyJzY29wZSI6WyJvcGVuaWQiXSwiY2xpZW50X2lkX25hbWUiOiJkYy1wbktoVURjQXcyR2NuQnRPOUNVQVd6IiwiVXNlcm5hbWUiOiJqb2UiLCJPcmdOYW1lIjoiUGluZyBJZGVudGl0eSBDb3Jwb3JhdGlvbiIsImV4cCI6MTUzNzQ3NjM0NH0.Eb5p90q8adowO9-QHrYSIRQebtne_6XEhZUNpJqAxm-Fal7y4GcUgq0pfCeDELt15VjZPvsD5Qh0o9up4Huahwh92k2MsbP4fWHV2DvcteE58j__7AuqHVN93rT2msH_W4gGjK5-QYJFpyw8NRoHYRSquMRYwMOfccDZ_-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VuaWQiXSwiY2xpZW50X2lkX25hbWUiOiJkYy1wbktoVURjQXcyR2NuQnRPOUNVQVd6IiwiVXNlcm5hbWUiOiJqb2UiLCJPcmdOYW1lIjoiUGluZyBJZGVudGl0eSBDb3Jwb3JhdGlvbiIsImV4cCI6MTUzNzQ3NjM0NH0.Eb5p90q8adowO9-QHrYSIRQebtne_6XEhZUNpJqAxm-Fal7y4GcUgq0pfCeDELt15VjZPvsD5Qh0o9up4Huahwh92k2MsbP4fWHV2DvcteE58j__7AuqHVN93rT2msH_W4gGjK5-QYJFpyw8NRoHYRSquMRYwMOfccDZ_-CEqqY70iWFDLhxhsXgxXizUjHU9MYiIdCGV0eliLqSTZ5G6c_pAnDanlLiPUne8N306ZqE-0_wBBFiennXXWrakPRqOB4AM29HWyuuhwF6fcBBCSZErXmYJ_GYsblHgRhyai4LAz-11xVa1FA0oYoGxeDztq5q4Wbq2hEW96cgBB34xA",
    "expires_in": 7199,
    "id_token": {
        "aud": [
            "dc-pnKhUDcAw2GcnBtO9CUAWz"
        ],
        "auth_time": 1537469142,
        "exp": 1537469443,
        "iat": 1537469143,
        "iss": "https://oidc-conformance.ping-eng.com:9031",
        "jti": "5BxCg5fV2gNMSJzC7APZbB",
        "nonce": "godmorgon",
        "pi.sri": "_Cy3fOw2J4tXLu6yyETBZn6FREQ",
        "s_hash": "lPfLcjeGFVCHj5VMD0HoUw",
        "sub": "joe"
    },
    "token_type": "Bearer"
}
7.295phase<--<-- 5 --- Done -->-->
7.295end
7.295assertionVerifyNonce
7.295conditionverify-nonce: status=OK [Verifies that the nonce received in the IDToken is the same as was given in the Authorization Request]
7.296assertionVerifyResponse
7.296conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
7.296conditionDone: status=OK

Result

PASSED