Test Info

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

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 -->-->
0register
kwargs:{'response_types': ['code'], 'grant_types': ['authorization_code'], 'application_name': 'OIC test tool', 'application_type': 'web', 'redirect_uris': ['https://op.certification.openid.net:61164/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61164/logout'], 'url': 'https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition', 'jwks_uri': 'https://op.certification.openid.net:61164/static/jwks_61164.json', 'token_endpoint_auth_method': 'private_key_jwt'}
0RegistrationRequest
{
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61164/static/jwks_61164.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61164/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61164/authz_cb"
    ],
    "response_types": [
        "code"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
0http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition status_code:200
0RegistrationResponse
{
    "application_type": "web",
    "client_id": "UJDZ74dd8t0PbyoW9sy6",
    "client_id_issued_at": 1560753568,
    "client_secret": "iPboA2B0eiN1bvnfgrTm",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61164/static/jwks_61164.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61164/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61164/authz_cb"
    ],
    "registration_access_token": "GRJxhykfRfMumGhuyWRY",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=UJDZ74dd8t0PbyoW9sy6",
    "response_types": [
        "code"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
0phase<--<-- 3 --- AsyncAuthn -->-->
0AuthorizationRequest
{
    "client_id": "UJDZ74dd8t0PbyoW9sy6",
    "nonce": "godmorgon",
    "redirect_uri": "https://op.certification.openid.net:61164/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "G5UjtdhciPpfHGbe"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=G5UjtdhciPpfHGbe&nonce=godmorgon&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61164%2Fauthz_cb&client_id=UJDZ74dd8t0PbyoW9sy6
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=G5UjtdhciPpfHGbe&nonce=godmorgon&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61164%2Fauthz_cb&client_id=UJDZ74dd8t0PbyoW9sy6
1responseResponse URL with query part
1response{'state': 'G5UjtdhciPpfHGbe', 'code': 'ViHpJHrtZ4uSiUdQZzXVNXWFqwmm8v'}
1response{'state': 'G5UjtdhciPpfHGbe', 'code': 'ViHpJHrtZ4uSiUdQZzXVNXWFqwmm8v'}
1AuthorizationResponse
{
    "code": "ViHpJHrtZ4uSiUdQZzXVNXWFqwmm8v",
    "state": "G5UjtdhciPpfHGbe"
}
1phase<--<-- 4 --- AccessToken -->-->
1requestop_args: {'state': 'G5UjtdhciPpfHGbe'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61164/authz_cb'}
1do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61164/authz_cb', 'code': 'ViHpJHrtZ4uSiUdQZzXVNXWFqwmm8v', 'state': 'G5UjtdhciPpfHGbe', 'grant_type': 'authorization_code', 'client_id': 'UJDZ74dd8t0PbyoW9sy6'}, 'state': 'G5UjtdhciPpfHGbe', 'authn_method': 'private_key_jwt'}
1AccessTokenRequest
{
    "client_assertion": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiVUpEWjc0ZGQ4dDBQYnlvVzlzeTYiLCAic3ViIjogIlVKRFo3NGRkOHQwUGJ5b1c5c3k2IiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJLT0YyYmxSRVJNbVhoMEo3MndpTTZVUTNVWTZyRWZxaiIsICJleHAiOiAxNTYwNzU0MTY5LCAiaWF0IjogMTU2MDc1MzU2OX0.JJvc42Fc2fykwiV6ZJlxDRsQqYjGNjqnfwfERDJxeHmdVT82Z-FRHDz6jJliItDzdvnhglG1SUtbivaU3cGqG094ZDSTt8duNtVkTGYHbtNfuav_2E8qEYWe2HqyetRiDen7LQmLeC8KqZ5u62FzK4xjOlplOxrITO0d4i4Lb2QuFR8AKbcGrsfhFCIeEz9vrZX6FSJfNjMPUYplegvuRuGoh9Qo44YAHLgxPUYqFfhLgc9W2PBYPFNcCJ1-1vPsieWpHzo0KYHNiv24RR5MsZYB4gRdpq2B6lGiCVi19ON8CPDtRQRCfVTln2P2GcMK2PwoBKmO-5mbG5O0IJ1upQ",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "code": "ViHpJHrtZ4uSiUdQZzXVNXWFqwmm8v",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61164/authz_cb",
    "state": "G5UjtdhciPpfHGbe"
}
1request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
1request_http_args{'headers': {'Content-Type': 'application/x-www-form-urlencoded'}}
1requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61164%2Fauthz_cb&code=ViHpJHrtZ4uSiUdQZzXVNXWFqwmm8v&state=G5UjtdhciPpfHGbe&client_assertion=eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiVUpEWjc0ZGQ4dDBQYnlvVzlzeTYiLCAic3ViIjogIlVKRFo3NGRkOHQwUGJ5b1c5c3k2IiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJLT0YyYmxSRVJNbVhoMEo3MndpTTZVUTNVWTZyRWZxaiIsICJleHAiOiAxNTYwNzU0MTY5LCAiaWF0IjogMTU2MDc1MzU2OX0.JJvc42Fc2fykwiV6ZJlxDRsQqYjGNjqnfwfERDJxeHmdVT82Z-FRHDz6jJliItDzdvnhglG1SUtbivaU3cGqG094ZDSTt8duNtVkTGYHbtNfuav_2E8qEYWe2HqyetRiDen7LQmLeC8KqZ5u62FzK4xjOlplOxrITO0d4i4Lb2QuFR8AKbcGrsfhFCIeEz9vrZX6FSJfNjMPUYplegvuRuGoh9Qo44YAHLgxPUYqFfhLgc9W2PBYPFNcCJ1-1vPsieWpHzo0KYHNiv24RR5MsZYB4gRdpq2B6lGiCVi19ON8CPDtRQRCfVTln2P2GcMK2PwoBKmO-5mbG5O0IJ1upQ&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer
1http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
1response{'access_token': '9JphlUoLBcgCBq3TVqc0', 'refresh_token': 'lK8xzdSbHdfN6vAlKpmi5HNQv0j3612SzBbYN7ly', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoiMGNjRTZLcTdWWUdWMkNqVzl6dlRrUSIsIm5vbmNlIjoiZ29kbW9yZ29uIiwiaWF0IjoxNTYwNzUzNTY5LCJpc3MiOiJodHRwczovL2lzYW1mZWQuY29tOjMwNDQzL3Rlc3QiLCJhdF9oYXNoIjoiRGNULXBLWF9MbmZTWWJENkRWWUJ5ZyIsInN1YiI6InRlc3R1c2VyIiwiZXhwIjoxNTYwNzU2OTg5LCJhdWQiOiJVSkRaNzRkZDh0MFBieW9XOXN5NiJ9.BsfxWrUQEtCWi3LOsS1uYB8r77vSFG1eICT3_ve_-zVsgEts4-JlKKflKAT4iLovD7RAweWOU--aTTavq0N-JB_ttPCc3zQVWbi-97_Vqm7_xOSp3G5NdhIuxb4LcTqtq-hF0vpxmjAiF9iDt4shfY7k8X8YXsvSnqdfGhSOzPNSjFj0frDb4bO7Fmb5FlDMRDsb1CbjxkN3XMqH8ene6j0PP0UzWbQZpAACRdRRTla4KuJWoajzUCStjULSfDBFez74Pdn5jJGJeiTlVuCaokewdVYzS7xFtdt1A5eUuSHdbmnupyknI9OisueH0eYKNG3V9D5X9thkRD78TaxJVg', 'token_type': 'bearer', 'expires_in': 3599}
2AccessTokenResponse
{
    "access_token": "9JphlUoLBcgCBq3TVqc0",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "DcT-pKX_LnfSYbD6DVYByg",
        "aud": [
            "UJDZ74dd8t0PbyoW9sy6"
        ],
        "exp": 1560756989,
        "iat": 1560753569,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "godmorgon",
        "rt_hash": "0ccE6Kq7VYGV2CjW9zvTkQ",
        "sub": "testuser"
    },
    "refresh_token": "lK8xzdSbHdfN6vAlKpmi5HNQv0j3612SzBbYN7ly",
    "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