Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-scope-phone
Test descriptionScope requesting phone claims
Timestamp2019-06-17T06:54:33Z

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'], '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"
}
1http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition status_code:200
1RegistrationResponse
{
    "application_type": "web",
    "client_id": "AsX0HQ2CBh9vtvqR0eX5",
    "client_id_issued_at": 1560754469,
    "client_secret": "nGIYbK4bTBvNALeriSK9",
    "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": "M7ShJCtPAR2YQxLC66Hm",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=AsX0HQ2CBh9vtvqR0eX5",
    "response_types": [
        "code"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
1phase<--<-- 3 --- AsyncAuthn -->-->
1AuthorizationRequest
{
    "client_id": "AsX0HQ2CBh9vtvqR0eX5",
    "nonce": "5G7oMizhxcEQSgNQ",
    "redirect_uri": "https://op.certification.openid.net:61164/authz_cb",
    "response_type": "code",
    "scope": "openid phone",
    "state": "RQBoNFBydtpfQr2p"
}
1redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=RQBoNFBydtpfQr2p&nonce=5G7oMizhxcEQSgNQ&response_type=code&scope=openid+phone&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61164%2Fauthz_cb&client_id=AsX0HQ2CBh9vtvqR0eX5
1redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=RQBoNFBydtpfQr2p&nonce=5G7oMizhxcEQSgNQ&response_type=code&scope=openid+phone&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61164%2Fauthz_cb&client_id=AsX0HQ2CBh9vtvqR0eX5
2responseResponse URL with query part
2response{'state': 'RQBoNFBydtpfQr2p', 'code': 'QKexv7jCvjNw1U0z4vq9Nwl26U9utT'}
2response{'state': 'RQBoNFBydtpfQr2p', 'code': 'QKexv7jCvjNw1U0z4vq9Nwl26U9utT'}
2AuthorizationResponse
{
    "code": "QKexv7jCvjNw1U0z4vq9Nwl26U9utT",
    "state": "RQBoNFBydtpfQr2p"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'RQBoNFBydtpfQr2p'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61164/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61164/authz_cb', 'code': 'QKexv7jCvjNw1U0z4vq9Nwl26U9utT', 'state': 'RQBoNFBydtpfQr2p', 'grant_type': 'authorization_code', 'client_id': 'AsX0HQ2CBh9vtvqR0eX5'}, 'state': 'RQBoNFBydtpfQr2p', 'authn_method': 'private_key_jwt'}
2AccessTokenRequest
{
    "client_assertion": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiQXNYMEhRMkNCaDl2dHZxUjBlWDUiLCAic3ViIjogIkFzWDBIUTJDQmg5dnR2cVIwZVg1IiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJOU2Z2RFI0Vm9TVWFrUE1nUUE3bEpMYmtMbFE1SjdueiIsICJleHAiOiAxNTYwNzU1MDcxLCAiaWF0IjogMTU2MDc1NDQ3MX0.y-QczsW6IzOmY4V8x-rnOnMkvpaTqAavv5FT4WfzBOy0OLx0lXrGOBMI_P_EPUo63JiLRC4w3h1stJ_UmhjUGIFt4JFE77fsJULe3hpu9cmNJctZDjxB_O4xT-tlWZ1Cb9mckw-OAMRhPXXTdu1HK8rR_rSWZBSdt7YUM5M9XfXHKBA-OY7fdPMzCRmv-TmMH7qwgTs-eqVk-bOgySVKtJSE4_EkoA7LkplnuiXOhwbS21XbnXYbxZJ9rxl0mwaGuK1JGNLTF6o25bUIX5D58bpVNPmDbP3EZ3t5S_NYbTuYv1rOvhQU441ImbB9DOba5rqqlEI6dcfHojhDfghj3w",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "code": "QKexv7jCvjNw1U0z4vq9Nwl26U9utT",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61164/authz_cb",
    "state": "RQBoNFBydtpfQr2p"
}
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%3A61164%2Fauthz_cb&code=QKexv7jCvjNw1U0z4vq9Nwl26U9utT&state=RQBoNFBydtpfQr2p&client_assertion=eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiQXNYMEhRMkNCaDl2dHZxUjBlWDUiLCAic3ViIjogIkFzWDBIUTJDQmg5dnR2cVIwZVg1IiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJOU2Z2RFI0Vm9TVWFrUE1nUUE3bEpMYmtMbFE1SjdueiIsICJleHAiOiAxNTYwNzU1MDcxLCAiaWF0IjogMTU2MDc1NDQ3MX0.y-QczsW6IzOmY4V8x-rnOnMkvpaTqAavv5FT4WfzBOy0OLx0lXrGOBMI_P_EPUo63JiLRC4w3h1stJ_UmhjUGIFt4JFE77fsJULe3hpu9cmNJctZDjxB_O4xT-tlWZ1Cb9mckw-OAMRhPXXTdu1HK8rR_rSWZBSdt7YUM5M9XfXHKBA-OY7fdPMzCRmv-TmMH7qwgTs-eqVk-bOgySVKtJSE4_EkoA7LkplnuiXOhwbS21XbnXYbxZJ9rxl0mwaGuK1JGNLTF6o25bUIX5D58bpVNPmDbP3EZ3t5S_NYbTuYv1rOvhQU441ImbB9DOba5rqqlEI6dcfHojhDfghj3w&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': '8jLfw5ozRonMsJBxJPkx', 'refresh_token': 'ddzfDzb9UGZPmMr4TbGTzc0ya6gvM1f5NcR3S6nm', 'scope': 'phone openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJwaG9uZV9udW1iZXJfdmVyaWZpZWQiOmZhbHNlLCJydF9oYXNoIjoiaFpGZF93bnR1RHRpbk1VaGdCWVBjQSIsIm5vbmNlIjoiNUc3b01pemh4Y0VRU2dOUSIsInBob25lX251bWJlciI6Ijg3NjU0MjE1IiwiaWF0IjoxNTYwNzU0NDcxLCJpc3MiOiJodHRwczovL2lzYW1mZWQuY29tOjMwNDQzL3Rlc3QiLCJhdF9oYXNoIjoiTmhiQmZ0LVQtX2RKUGlITHRNc3ZnQSIsInN1YiI6InRlc3R1c2VyIiwiZXhwIjoxNTYwNzU3ODkxLCJhdWQiOiJBc1gwSFEyQ0JoOXZ0dnFSMGVYNSJ9.FlGsv06mchQV6tjXG8BuS9TeekaY3EDPjFoO-yD2ibFRKkVli5MI-ByjLY1CHa149ujCK0nYsgpoUHLPHhy5a6yvocDw41eTDRVKFTB6QGGiv2y9GV0cvkCve0YNuApnORr_WYXjGm5PH9mGc1nvJwslvOguqBZUb2FNzIrE0qJ2-2kcVYjzV-kQMPmR4YG5kcNhilJx31u6EDB_5NjLImrkmt96oF2O-qyC4YKuysOj_6Nf5JDBznccSZjdIc8SPlqQDkgxO8rcgeL6Jy1aMwfccgZVO96NDdTfWoM5c1edWZsSXOLCja7MZCW0ddjn315NIWSULAwwIfQrpVAKrw', 'token_type': 'bearer', 'expires_in': 3599}
3AccessTokenResponse
{
    "access_token": "8jLfw5ozRonMsJBxJPkx",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "NhbBft-T-_dJPiHLtMsvgA",
        "aud": [
            "AsX0HQ2CBh9vtvqR0eX5"
        ],
        "exp": 1560757891,
        "iat": 1560754471,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "5G7oMizhxcEQSgNQ",
        "phone_number": "87654215",
        "phone_number_verified": false,
        "rt_hash": "hZFd_wntuDtinMUhgBYPcA",
        "sub": "testuser"
    },
    "refresh_token": "ddzfDzb9UGZPmMr4TbGTzc0ya6gvM1f5NcR3S6nm",
    "scope": "phone openid",
    "token_type": "bearer"
}
3jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
3phase<--<-- 5 --- UserInfo -->-->
3do_user_info_request
kwargs:{'state': 'RQBoNFBydtpfQr2p', '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 8jLfw5ozRonMsJBxJPkx'}}
4http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo status_code:200
4OpenIDSchema
{
    "phone_number": "87654215",
    "phone_number_verified": false,
    "sub": "testuser"
}
4OpenIDSchema
{
    "phone_number": "87654215",
    "phone_number_verified": false,
    "sub": "testuser"
}
4phase<--<-- 6 --- Done -->-->
4end
4assertionVerifyScopes
4conditionverify-scopes: status=OK [Verifies that the claims corresponding to the requested scopes are returned]
4assertionCheckHTTPResponse
4conditioncheck-http-response: status=OK [Checks that the HTTP response status is within the 200 or 300 range. Also does some extra JSON checks]
4assertionVerifyResponse
4conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
4conditionDone: status=OK

Result

PASSED