Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-scope-phone
Test descriptionScope requesting phone claims
Timestamp2019-06-17T07:16:40Z

Conditions


verify-scopes: status=OK [Verifies that the claims corresponding to the requested scopes are returned]
check-http-response: status=OK [Checks that the HTTP response status is within the 200 or 300 range. Also does some extra JSON checks]
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 id_token'], 'grant_types': ['authorization_code', 'implicit'], 'application_name': 'OIC test tool', 'application_type': 'web', 'redirect_uris': ['https://op.certification.openid.net:61365/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61365/logout'], 'url': 'https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition', 'jwks_uri': 'https://op.certification.openid.net:61365/static/jwks_61365.json', 'token_endpoint_auth_method': 'private_key_jwt'}
0RegistrationRequest
{
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "jwks_uri": "https://op.certification.openid.net:61365/static/jwks_61365.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61365/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61365/authz_cb"
    ],
    "response_types": [
        "code id_token"
    ],
    "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": "x9h8LyFXgwoRcgK0KrTK",
    "client_id_issued_at": 1560755797,
    "client_secret": "A4QPexXTRVsT0FYYRkxV",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "jwks_uri": "https://op.certification.openid.net:61365/static/jwks_61365.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61365/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61365/authz_cb"
    ],
    "registration_access_token": "77gdLDyw6Y0mosJcB48e",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=x9h8LyFXgwoRcgK0KrTK",
    "response_types": [
        "code",
        "id_token"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
0phase<--<-- 3 --- AsyncAuthn -->-->
0AuthorizationRequest
{
    "client_id": "x9h8LyFXgwoRcgK0KrTK",
    "nonce": "elpbTZTjpUodkTNa",
    "redirect_uri": "https://op.certification.openid.net:61365/authz_cb",
    "response_type": "code id_token",
    "scope": "openid phone",
    "state": "p0QCa8r9lLmsGwes"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=p0QCa8r9lLmsGwes&nonce=elpbTZTjpUodkTNa&response_type=code+id_token&scope=openid+phone&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61365%2Fauthz_cb&client_id=x9h8LyFXgwoRcgK0KrTK
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=p0QCa8r9lLmsGwes&nonce=elpbTZTjpUodkTNa&response_type=code+id_token&scope=openid+phone&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61365%2Fauthz_cb&client_id=x9h8LyFXgwoRcgK0KrTK
2http args{}
2responseURL with fragment
2responseid_token=eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJwaG9uZV9udW1iZXJfdmVyaWZpZWQiOmZhbHNlLCJub25jZSI6ImVscGJUWlRqcFVvZGtUTmEiLCJwaG9uZV9udW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N7Ree29A2ZjaY4RIauigfhotHbAnRrnoTZ_7ZHQcW8o4K78tfksae75DAdJ0xuU68VjpIsNd064jcgar29P3IPCK2y2Tzq5gdUOjCKtub3_Y1danYPQCxVf49eBJg8zKHvzGXp7W8kibXWPG1rRmWF_8c7uCxPGIfOa53ZChJBIfFePXVjrk_4w2w5c1ZWwFY0eIz1DGMWvM_AY9YIVRz4UwAcgFAsgcjRbM5OLWaI8tOjuV5GdFTfbEDMO8TlwiNyIWtypPOv4RF4AQ07EnagYWx9MmWRLK5C_TEVTHq9j8AvcERnv_3LhHN6CN4B7oQ', 'state': 'p0QCa8r9lLmsGwes', 'code': 'ziFvevANRKXg23Kt6QWeshDOVq4tsq'}
2AuthorizationResponse
{
    "code": "ziFvevANRKXg23Kt6QWeshDOVq4tsq",
    "id_token": {
        "aud": [
            "x9h8LyFXgwoRcgK0KrTK"
        ],
        "c_hash": "2ccN3YMf7r0p85TMruuYGg",
        "exp": 1560759218,
        "iat": 1560755798,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "elpbTZTjpUodkTNa",
        "phone_number": "87654215",
        "phone_number_verified": false,
        "sub": "testuser"
    },
    "state": "p0QCa8r9lLmsGwes"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'p0QCa8r9lLmsGwes'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61365/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61365/authz_cb', 'code': 'ziFvevANRKXg23Kt6QWeshDOVq4tsq', 'state': 'p0QCa8r9lLmsGwes', 'grant_type': 'authorization_code', 'client_id': 'x9h8LyFXgwoRcgK0KrTK'}, 'state': 'p0QCa8r9lLmsGwes', 'authn_method': 'private_key_jwt'}
2AccessTokenRequest
{
    "client_assertion": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAieDloOEx5Rlhnd29SY2dLMEtyVEsiLCAic3ViIjogIng5aDhMeUZYZ3dvUmNnSzBLclRLIiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJBSWhZb3Z2Y29HZ0toUUtSRXBCS3BvOGQ0TXo2TVFUZSIsICJleHAiOiAxNTYwNzU2Mzk5LCAiaWF0IjogMTU2MDc1NTc5OX0.xMod6zhja4T7EV4DHXlXkqiExVFPhYyF5tSUS3TUnPmTuLxU0rAkceBNQVlhXaz3kXd5J0u0Iuig9FJ6KRT721rOK3X_DTKHTfI9bq1CXX3-LAncqcqi4SflwnLxhOc5Ve3yqlpxJLDbSNPduHh87AIWTtJ27HFQ6xkobNk1v6c-abt6yHC8HWLozV0dIFSMtUFTRWCU1M55vU8CPxHk1GXG-2QtKbGi1_Pixx6l6u7GGBstobJmJfvbRxfFmb5yP6ZnBmXtBeF1afTjiP7ne1_c8K1JEqp2EEy9bFaulOteEolEJmFIr85Qz5MZXPgGCT-c9CQqcOpYmG7cpIhkkQ",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "code": "ziFvevANRKXg23Kt6QWeshDOVq4tsq",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61365/authz_cb",
    "state": "p0QCa8r9lLmsGwes"
}
2request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
2request_http_args{'headers': {'Content-Type': 'application/x-www-form-urlencoded'}}
2requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61365%2Fauthz_cb&code=ziFvevANRKXg23Kt6QWeshDOVq4tsq&state=p0QCa8r9lLmsGwes&client_assertion=eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAieDloOEx5Rlhnd29SY2dLMEtyVEsiLCAic3ViIjogIng5aDhMeUZYZ3dvUmNnSzBLclRLIiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJBSWhZb3Z2Y29HZ0toUUtSRXBCS3BvOGQ0TXo2TVFUZSIsICJleHAiOiAxNTYwNzU2Mzk5LCAiaWF0IjogMTU2MDc1NTc5OX0.xMod6zhja4T7EV4DHXlXkqiExVFPhYyF5tSUS3TUnPmTuLxU0rAkceBNQVlhXaz3kXd5J0u0Iuig9FJ6KRT721rOK3X_DTKHTfI9bq1CXX3-LAncqcqi4SflwnLxhOc5Ve3yqlpxJLDbSNPduHh87AIWTtJ27HFQ6xkobNk1v6c-abt6yHC8HWLozV0dIFSMtUFTRWCU1M55vU8CPxHk1GXG-2QtKbGi1_Pixx6l6u7GGBstobJmJfvbRxfFmb5yP6ZnBmXtBeF1afTjiP7ne1_c8K1JEqp2EEy9bFaulOteEolEJmFIr85Qz5MZXPgGCT-c9CQqcOpYmG7cpIhkkQ&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer
3http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
3response{'access_token': 'z5BXiKTSxXkEDoumaWni', 'refresh_token': 'pBHNus7vCsCLPBQT55c0BUI0EoI6sEcH0B4cnng9', 'scope': 'phone openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJwaG9uZV9udW1iZXJfdmVyaWZpZWQiOmZhbHNlLCJydF9oYXNoIjoiRERNOU5QVy04WmxHLUdnaXhEcGtPUSIsIm5vbmNlIjoiZWxwYlRaVGpwVW9ka1ROYSIsInBob25lX251bWJlciI6Ijg3NjU0MjE1IiwiaWF0IjoxNTYwNzU1ODAwLCJpc3MiOiJodHRwczovL2lzYW1mZWQuY29tOjMwNDQzL3Rlc3QiLCJhdF9oYXNoIjoiYXFrWXQ1SWE0TlQ2V1VwYmxmWDlZUSIsInN1YiI6InRlc3R1c2VyIiwiZXhwIjoxNTYwNzU5MjIwLCJhdWQiOiJ4OWg4THlGWGd3b1JjZ0swS3JUSyJ9.GAmMdqcnvysXLJEM0pLHjBZaC7lGTkx_LqGMYxbWsDS5xNGufwG0-VsOQzuNVwLmOKXITAzMTvKcnBFt1f6nf_edH4cwND7e5jjpVuWE5a3qneV8kAtbE8vW6emPxlF2l-9trFF8AAloVVG3G1wA0LSFP_mjZ28bR81fkcvR5ARIGuP4dRuW8oRdtKFSM7oiPsjqcwjWYsVr61aj9im9FLARhDu8OGlcypU8CHChmOHRwCDVfSVWBQTW29Pn1eDUxXYurPG1LG_-feOjNe35Ka0oakVZ3Kp9XpbmoZPG9fWhur5EJULJYzvhkzO3v-7bdwOe9RhS_YwlXq3_C1C0uw', 'token_type': 'bearer', 'expires_in': 3599}
3AccessTokenResponse
{
    "access_token": "z5BXiKTSxXkEDoumaWni",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "aqkYt5Ia4NT6WUpblfX9YQ",
        "aud": [
            "x9h8LyFXgwoRcgK0KrTK"
        ],
        "exp": 1560759220,
        "iat": 1560755800,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "elpbTZTjpUodkTNa",
        "phone_number": "87654215",
        "phone_number_verified": false,
        "rt_hash": "DDM9NPW-8ZlG-GgixDpkOQ",
        "sub": "testuser"
    },
    "refresh_token": "pBHNus7vCsCLPBQT55c0BUI0EoI6sEcH0B4cnng9",
    "scope": "phone openid",
    "token_type": "bearer"
}
3jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
3phase<--<-- 5 --- UserInfo -->-->
3do_user_info_request
kwargs:{'state': 'p0QCa8r9lLmsGwes', 'method': 'GET', 'authn_method': 'bearer_header'}
3request{'body': None}
3request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo
3request_http_args{'headers': {'Authorization': 'Bearer z5BXiKTSxXkEDoumaWni'}}
3http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo status_code:200
3OpenIDSchema
{
    "phone_number": "87654215",
    "phone_number_verified": false,
    "sub": "testuser"
}
3OpenIDSchema
{
    "phone_number": "87654215",
    "phone_number_verified": false,
    "sub": "testuser"
}
3phase<--<-- 6 --- Done -->-->
3end
3assertionVerifyScopes
3conditionverify-scopes: status=OK [Verifies that the claims corresponding to the requested scopes are returned]
3assertionCheckHTTPResponse
3conditioncheck-http-response: status=OK [Checks that the HTTP response status is within the 200 or 300 range. Also does some extra JSON checks]
3assertionVerifyResponse
3conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
3conditionDone: status=OK

Result

PASSED