Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-nonce-code
Test descriptionID Token has nonce when requested for code flow
Timestamp2019-06-17T07:58:06Z

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

0phase<--<-- 0 --- Webfinger -->-->
0not expected to doWebFinger
0phase<--<-- 1 --- Discovery -->-->
0provider_config
kwargs:{'issuer': 'https://isamfed.com:30443/test'}
0http response
url:https://isamfed.com:30443/test/.well-known/openid-configuration status_code:200
0ProviderConfigurationResponse
{
    "authorization_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/authorize",
    "claims_parameter_supported": false,
    "claims_supported": [
        "realmName",
        "preferred_username",
        "given_name",
        "uid",
        "upn",
        "groupIds",
        "employee_id",
        "name",
        "tenantId",
        "mobile_number",
        "department",
        "job_title",
        "family_name",
        "email"
    ],
    "device_authorize_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/device_authorize",
    "grant_types_supported": [
        "urn:ietf:params:oauth:grant-type:jwt-bearer",
        "implicit",
        "urn:ietf:params:oauth:grant-type:saml2-bearer",
        "urn:ietf:params:oauth:grant-type:device_code",
        "client_credentials",
        "password",
        "authorization_code",
        "refresh_token"
    ],
    "id_token_signing_alg_values_supported": [
        "RS256"
    ],
    "introspect_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/introspect",
    "issuer": "https://isamfed.com:30443/test",
    "jwks_uri": "https://isamfed.com:30443/mga/sps/jwks",
    "name": "OIDCDefinition",
    "poc": "https://isamfed.com:30443/mga/",
    "registration_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition",
    "request_parameter_supported": true,
    "request_uri_parameter_supported": true,
    "require_request_uri_registration": false,
    "response_modes_supported": [
        "fragment",
        "form_post"
    ],
    "response_types_supported": [
        "token",
        "id_token",
        "token id_token",
        "code",
        "code id_token",
        "code token id_token",
        "code token",
        "none"
    ],
    "revocation_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/revoke",
    "subject_types_supported": [
        "public"
    ],
    "token_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/token",
    "token_endpoint_auth_methods_supported": [
        "private_key_jwt",
        "client_secret_post",
        "client_secret_basic"
    ],
    "user_authorize_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/user_authorize",
    "userinfo_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo",
    "userinfo_signing_alg_values_supported": [
        "RS256"
    ],
    "version": "3.0"
}
0phase<--<-- 2 --- Registration -->-->
0not expected to doDynamic registration
0phase<--<-- 3 --- AsyncAuthn -->-->
0AuthorizationRequest
{
    "client_id": "clientID",
    "nonce": "godmorgon",
    "redirect_uri": "https://op.certification.openid.net:61375/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "4kwF7c6WZVNHIGJx"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=4kwF7c6WZVNHIGJx&nonce=godmorgon&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61375%2Fauthz_cb&client_id=clientID
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=4kwF7c6WZVNHIGJx&nonce=godmorgon&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61375%2Fauthz_cb&client_id=clientID
1responseResponse URL with query part
1response{'state': '4kwF7c6WZVNHIGJx', 'code': 'MD3KWq7xw5ehZ6kUke5nnQUgbg05G9'}
1response{'state': '4kwF7c6WZVNHIGJx', 'code': 'MD3KWq7xw5ehZ6kUke5nnQUgbg05G9'}
1AuthorizationResponse
{
    "code": "MD3KWq7xw5ehZ6kUke5nnQUgbg05G9",
    "state": "4kwF7c6WZVNHIGJx"
}
1phase<--<-- 4 --- AccessToken -->-->
1requestop_args: {'state': '4kwF7c6WZVNHIGJx'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61375/authz_cb'}
1do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61375/authz_cb', 'code': 'MD3KWq7xw5ehZ6kUke5nnQUgbg05G9', 'state': '4kwF7c6WZVNHIGJx', 'grant_type': 'authorization_code', 'client_id': 'clientID'}, 'state': '4kwF7c6WZVNHIGJx', 'authn_method': 'client_secret_basic'}
1AccessTokenRequest
{
    "code": "MD3KWq7xw5ehZ6kUke5nnQUgbg05G9",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61375/authz_cb",
    "state": "4kwF7c6WZVNHIGJx"
}
1request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
1request_http_args{'headers': {'Authorization': 'Basic Y2xpZW50SUQ6Y2xpZW50U2VjcmV0', 'Content-Type': 'application/x-www-form-urlencoded'}}
1requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61375%2Fauthz_cb&code=MD3KWq7xw5ehZ6kUke5nnQUgbg05G9&state=4kwF7c6WZVNHIGJx
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
2response{'access_token': 'kFvpenSe7NMn371jAHVu', 'refresh_token': 'gI7e2op3JQLJekgayijwA5BNTyQZmooeJICh3vdd', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoiWXNsREtnd3FWSEtTMVQwVFdXdmtldyIsIm5vbmNlIjoiZ29kbW9yZ29uIiwiaWF0IjoxNTYwNzU4Mjg1LCJpc3MiOiJodHRwczovL2lzYW1mZWQuY29tOjMwNDQzL3Rlc3QiLCJhdF9oYXNoIjoiREpwdUR1X18zMVhNMVY1Y0ZZei1iZyIsInN1YiI6InRlc3R1c2VyIiwiZXhwIjoxNTYwNzYxNzA1LCJhdWQiOiJjbGllbnRJRCJ9.X-REYfOY-Xb0a6_TIpHY6Zckn9_i-nY-EIsh_ibIh6dapvLzUuI75mTQovwU65UYfjBmF8CON9QP3ll8B8QwPEubC-FkbP-vOXCwnPwvz1lPJ4SYk3aBSb4zogZTAswwUQMBt1H0p2r2MRKoaTK78yTivRsK9YS9_knJZ0iTCAE63NmnRzNK4m7wire_MgzGDzxAjWKXOtl4lQCJ6mS7_zqUeuAHMFe-YSLWMRhyqoGv74ysyjRA8-tPmJEf79nxflU-sdlVy3UdG8m3riNEc8cZqajyWWuzl0ixX6_UJNgyqf8IAvehgaQO9KEBzjW-J_zVbOx227_84DrLTZMkXw', 'token_type': 'bearer', 'expires_in': 3599}
2AccessTokenResponse
{
    "access_token": "kFvpenSe7NMn371jAHVu",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "DJpuDu__31XM1V5cFYz-bg",
        "aud": [
            "clientID"
        ],
        "exp": 1560761705,
        "iat": 1560758285,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "godmorgon",
        "rt_hash": "YslDKgwqVHKS1T0TWWvkew",
        "sub": "testuser"
    },
    "refresh_token": "gI7e2op3JQLJekgayijwA5BNTyQZmooeJICh3vdd",
    "scope": "openid",
    "token_type": "bearer"
}
2jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
2phase<--<-- 5 --- Done -->-->
2end
2assertionVerifyNonce
2conditionverify-nonce: status=OK [Verifies that the nonce received in the IDToken is the same as was given in the Authorization Request]
2assertionVerifyResponse
2conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
2conditionDone: status=OK

Result

PASSED