Test Info

Test descriptionID Token has nonce when requested for code flow
Profile[]
Test IDOP-nonce-code
Timestamp2017-12-18T21:01:05Z
Issuerhttps://oidctest.idautoengineering.net/idp

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.0provider_config
kwargs:{'issuer': 'https://oidctest.idautoengineering.net/idp'}
0.024http response
url:https://oidctest.idautoengineering.net/idp/.well-known/openid-configuration status_code:200
0.026ProviderConfigurationResponse
{
    "authorization_endpoint": "https://oidctest.idautoengineering.net/idp/profile/oidc/auth",
    "claim_types_supported": [
        "normal"
    ],
    "claims_parameter_supported": false,
    "claims_supported": [
        "sub",
        "name",
        "given_name",
        "family_name",
        "email"
    ],
    "display_values_supported": [
        "page"
    ],
    "grant_types_supported": [
        "authorization_code"
    ],
    "id_token_signing_alg_values_supported": [
        "RS256"
    ],
    "issuer": "https://oidctest.idautoengineering.net/idp",
    "jwks_uri": "https://oidctest.idautoengineering.net/idp/profile/oidc/jwks",
    "request_parameter_supported": false,
    "request_uri_parameter_supported": true,
    "require_request_uri_registration": true,
    "response_modes_supported": [
        "query"
    ],
    "response_types_supported": [
        "code",
        "token",
        "id_token"
    ],
    "scopes_supported": [
        "openid"
    ],
    "subject_types_supported": [
        "public"
    ],
    "token_endpoint": "https://oidctest.idautoengineering.net/idp/profile/oidc/token",
    "token_endpoint_auth_methods_supported": [
        "client_secret_post",
        "client_secret_basic"
    ],
    "userinfo_endpoint": "https://oidctest.idautoengineering.net/idp/profile/oidc/userinfo",
    "userinfo_signing_alg_values_supported": [
        "RS256"
    ],
    "version": "3.0"
}
0.026phase<--<-- 2 --- Registration -->-->
0.026not expected to doDynamic registration
0.026phase<--<-- 3 --- AsyncAuthn -->-->
0.026AuthorizationRequest
{
    "client_id": "3000badf0c55d2cae7c22b3d63e3f667",
    "nonce": "godmorgon",
    "redirect_uri": "https://op.certification.openid.net:60992/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "DIA9rYEy1NWyoJYd"
}
0.026redirect urlhttps://oidctest.idautoengineering.net/idp/profile/oidc/auth?scope=openid&nonce=godmorgon&state=DIA9rYEy1NWyoJYd&response_type=code&client_id=3000badf0c55d2cae7c22b3d63e3f667&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60992%2Fauthz_cb
0.026redirecthttps://oidctest.idautoengineering.net/idp/profile/oidc/auth?scope=openid&nonce=godmorgon&state=DIA9rYEy1NWyoJYd&response_type=code&client_id=3000badf0c55d2cae7c22b3d63e3f667&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60992%2Fauthz_cb
0.299response{'code': '0ppNUm9CVX_-LyiVQEHHYrFYkqw59gLnGZBfFdHdNv-y.KoLxU', 'state': 'DIA9rYEy1NWyoJYd'}
0.299response{'code': '0ppNUm9CVX_-LyiVQEHHYrFYkqw59gLnGZBfFdHdNv-y.KoLxU', 'state': 'DIA9rYEy1NWyoJYd'}
0.299AuthorizationResponse
{
    "code": "0ppNUm9CVX_-LyiVQEHHYrFYkqw59gLnGZBfFdHdNv-y.KoLxU",
    "state": "DIA9rYEy1NWyoJYd"
}
0.299phase<--<-- 4 --- AccessToken -->-->
0.299requestop_args: {'state': 'DIA9rYEy1NWyoJYd'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:60992/authz_cb'}
0.299do_access_token_request
kwargs:{'request_args': {'code': '0ppNUm9CVX_-LyiVQEHHYrFYkqw59gLnGZBfFdHdNv-y.KoLxU', 'state': 'DIA9rYEy1NWyoJYd', 'grant_type': 'authorization_code', 'client_id': '3000badf0c55d2cae7c22b3d63e3f667', 'redirect_uri': 'https://op.certification.openid.net:60992/authz_cb'}, 'state': 'DIA9rYEy1NWyoJYd'}
0.3AccessTokenRequest
{
    "client_id": "3000badf0c55d2cae7c22b3d63e3f667",
    "code": "0ppNUm9CVX_-LyiVQEHHYrFYkqw59gLnGZBfFdHdNv-y.KoLxU",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:60992/authz_cb",
    "state": "DIA9rYEy1NWyoJYd"
}
0.3request_urlhttps://oidctest.idautoengineering.net/idp/profile/oidc/token
0.3request_http_args{'headers': {'Authorization': 'Basic MzAwMGJhZGYwYzU1ZDJjYWU3YzIyYjNkNjNlM2Y2Njc6ODY5N2E4OTlhYzFjNzYwODAyNmM4ZDEzN2E1YzMzYTAwM2RlMDA1MDc2MzBmMmQ2OGM5NTNlMTNkNzVlNjFiYg==', 'Content-Type': 'application/x-www-form-urlencoded'}}
0.3requestclient_id=3000badf0c55d2cae7c22b3d63e3f667&state=DIA9rYEy1NWyoJYd&code=0ppNUm9CVX_-LyiVQEHHYrFYkqw59gLnGZBfFdHdNv-y.KoLxU&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60992%2Fauthz_cb
0.337http response
url:https://oidctest.idautoengineering.net/idp/profile/oidc/token status_code:200
0.338response{'refresh_token': 'f7SJLQ__pUZdNTDszN.82cdiHRmhC2J-~sIuAg+0hcCkc3~IL-', 'expires_in': 32399, 'scope': 'openid', 'access_token': 'fs8oJY5Ksj-GXgfyt3_~Qy4LcFgZSRgIDHyjDyzC0o.Z~qb~OK', 'id_token': 'eyJraWQiOiI2NTJlNjk1N2UxNzNmYzYxOTYxN2ZhMjNjMzZjYmFjNTRhNWZhNzhlNjBiNzA2Mjg5NmI2ZDgzNTdkNDVhOWYxIiwiYWxnIjoiUlMyNTYifQ.eyJpYXQiOjE1MTM2MzA4NjUsImV4cCI6MTUxMzYzMDkyNSwiaXNzIjoiaHR0cHM6Ly9vaWRjdGVzdC5pZGF1dG9lbmdpbmVlcmluZy5uZXQvaWRwIiwiYXVkIjoiMzAwMGJhZGYwYzU1ZDJjYWU3YzIyYjNkNjNlM2Y2NjciLCJzdWIiOiIyNjIwMjdhMC1hZjc3LTExZTctODc2ZC0wMjc0MGM1NDljY2EiLCJhdXRoX3RpbWUiOjE1MTM2MzA4NDcsIm5vbmNlIjoiZ29kbW9yZ29uIiwiYXpwIjoiMzAwMGJhZGYwYzU1ZDJjYWU3YzIyYjNkNjNlM2Y2NjciLCJuYW1lIjoiU3lzdGVtIEFkbWluIiwiZ2l2ZW5fbmFtZSI6IlN5c3RlbSIsImZhbWlseV9uYW1lIjoiQWRtaW4iLCJlbWFpbCI6ImpiZWxsYXNzYWlAaWRlbnRpdHlhdXRvbWF0aW9uLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhdF9oYXNoIjoiR3RxOThDMUVMeHRXTXRXTE81WHZndz09In0.XKKFJW5MtAmRr2_ZWMju71IGCQi_RmI_TZo7QjeFq1SrzyFITvA-W6CvP3jAwPKILHsyWMMw9jpyPowi-1pkr78GyRVGZSnTAY6o5FP9a7H1zKxrmI-PQ-cDaFMbsSeJDMQ9nLGXfQHWi_M-6T8gHFSvUjh9Ps7Zvbk4bMPJkOXNGYx3giptgmxTR7TqYOoPIgrxaUttbj3SMZ0dBb4TFubNIr36Y0tv-eKkIR6hYuQXTKTR656eEz2Qu7pRM0mCWRW4XdCP5iG4Q-vvVyB0umpotsaDTLkZOHEdniDvpwDlDDaGJlVUiaUatUiEoYCetu3iPXTd_4rR4cd2n8CEfg', 'token_type': 'Bearer'}
0.363AccessTokenResponse
{
    "access_token": "fs8oJY5Ksj-GXgfyt3_~Qy4LcFgZSRgIDHyjDyzC0o.Z~qb~OK",
    "expires_in": 32399,
    "id_token": {
        "at_hash": "Gtq98C1ELxtWMtWLO5Xvgw==",
        "aud": [
            "3000badf0c55d2cae7c22b3d63e3f667"
        ],
        "auth_time": 1513630847,
        "azp": "3000badf0c55d2cae7c22b3d63e3f667",
        "email": "jbellassai@identityautomation.com",
        "email_verified": true,
        "exp": 1513630925,
        "family_name": "Admin",
        "given_name": "System",
        "iat": 1513630865,
        "iss": "https://oidctest.idautoengineering.net/idp",
        "name": "System Admin",
        "nonce": "godmorgon",
        "sub": "262027a0-af77-11e7-876d-02740c549cca"
    },
    "refresh_token": "f7SJLQ__pUZdNTDszN.82cdiHRmhC2J-~sIuAg+0hcCkc3~IL-",
    "scope": "openid",
    "token_type": "Bearer"
}
0.364phase<--<-- 5 --- Done -->-->
0.364end
0.364assertionVerifyNonce
0.364conditionverify-nonce: status=OK [Verifies that the nonce received in the IDToken is the same as was given in the Authorization Request]
0.365assertionVerifyResponse
0.365conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
0.365conditionDone: status=OK

Result

PASSED