Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-scope-phone
Test descriptionScope requesting phone claims
Timestamp2019-06-18T04:12:09Z

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_encryption_alg_values_supported": [
        "A128KW"
    ],
    "id_token_encryption_enc_values_supported": [
        "A128CBC-HS256"
    ],
    "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": "4kgLZUjTTJb3HocE",
    "redirect_uri": "https://op.certification.openid.net:61764/authz_cb",
    "response_type": "code",
    "scope": "openid phone",
    "state": "mEBosG7Gwjvy7Hgq"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=mEBosG7Gwjvy7Hgq&nonce=4kgLZUjTTJb3HocE&response_type=code&scope=openid+phone&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61764%2Fauthz_cb&client_id=clientID
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=mEBosG7Gwjvy7Hgq&nonce=4kgLZUjTTJb3HocE&response_type=code&scope=openid+phone&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61764%2Fauthz_cb&client_id=clientID
2responseResponse URL with query part
2response{'state': 'mEBosG7Gwjvy7Hgq', 'code': 'CgbW1tH7y8XkPkTd0DmTxCWnwurJGj'}
2response{'state': 'mEBosG7Gwjvy7Hgq', 'code': 'CgbW1tH7y8XkPkTd0DmTxCWnwurJGj'}
2AuthorizationResponse
{
    "code": "CgbW1tH7y8XkPkTd0DmTxCWnwurJGj",
    "state": "mEBosG7Gwjvy7Hgq"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'mEBosG7Gwjvy7Hgq'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61764/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61764/authz_cb', 'code': 'CgbW1tH7y8XkPkTd0DmTxCWnwurJGj', 'state': 'mEBosG7Gwjvy7Hgq', 'grant_type': 'authorization_code', 'client_id': 'clientID'}, 'state': 'mEBosG7Gwjvy7Hgq', 'authn_method': 'client_secret_basic'}
2AccessTokenRequest
{
    "code": "CgbW1tH7y8XkPkTd0DmTxCWnwurJGj",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61764/authz_cb",
    "state": "mEBosG7Gwjvy7Hgq"
}
2request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
2request_http_args{'headers': {'Authorization': 'Basic Y2xpZW50SUQ6Y2xpZW50U2VjcmV0', 'Content-Type': 'application/x-www-form-urlencoded'}}
2requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61764%2Fauthz_cb&code=CgbW1tH7y8XkPkTd0DmTxCWnwurJGj&state=mEBosG7Gwjvy7Hgq
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
2response{'access_token': 'NZ1hYNAx14IXuQ5wDsPd', 'refresh_token': 'XPTbVPniagXECrauSy12iG8zItSrWBIg1YHQ9B8l', 'scope': 'phone openid', 'id_token': 'eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldUIn0.WUJTQXhVFR8lXb7Fn17o7ZwWQKLVkCpMLemuxp2uBkLDShkyi47Gng.GMk5nPeTp9Qq_jauk636Eg.1R6895VAfVA6A-zjBokzKPxwPmuE1t0rK4JIWHq02rYOgPz56INT0ADjf_ZE05PM6thLj_DmdmJMYGM6w5m39npwQx5Lt-88hoNPQu-x23q8TtIoNXgS45bwD0kwu5cWkU20c0__vEH-JPYOvmIhRBkGBaSblr7Oj2nKXbi7bmEyyBylcnjHwagkPl1lwu2rk9rUJLJympSUIsSlOcj1U2KqICqiK4HQtT8tFEowklIjf7UuBo_aABL9Ks746fWww2aea2igTxSPi3M4K4Su01wpw0I8ClKydTJlZ_rO81hv1LIrU03ANrGGIOUbk991ML011A-bgich1JTDBhl8ys2beYMSubqDvVYGEiCEXVTPyB-efyXh0xGSoGXN60gcobrYm-UU3A5fEyKzLZ7gBMQ97igMqIrn-eV5UOwYxGpATyBknG3laGZLGVyL9r2oWKsawHTVR_em_xv0xZS7c8VHT1np2znTgDMW04VLKek2B6p12kvp4AzePloLNBeGz4Pvh6Ra85JCYsdpk2THFg7PtxZYprZVF7Lm6AKeePBTEW74coAUvyzY1C0_vfhuVqimkvms5YdKVDv76RIFFVehP_iVdnm1gYm-3FAbE7eYne15uCx2Qacg2Cy4--ACz3BW5OhQq4uEPbbqs5x6RiXlcJx7VjGG4Q1he-s27_OxXKqNdrN_VXDkZuCxotO8iWbvEWriWjnReeCvCX67L3BK5b7aH7On5XFYZuNcNzcTeLARs80eu6cAKn3YJ8OQdv9rJB1De_V7rwZAOPnysP3_32fGWLIv0nmAxReSPQoWl4L_EcvBXCYRzk5UfaZb5vt5Hw12yd5IdhgNp6otFzIdtct3eKQ8GeGva4WhRerpo3L9dQppsfo1HAXc3IiCeMc_8XrqR4NTpFo9xb2rf977Qk-ly_YY4BhkRBVFYkGjtqbDaEDhpwz5mbo3TIItfXFdI1M3b7A48VpVwfZbaUh9Fhd-RM8srurc--meFzPd8k27tjaFktJ38iNFPWm49poY26uaaaWtRpkHYFQUag.yxi20DJ-kdQT4mLAA_fc8A', 'token_type': 'bearer', 'expires_in': 3599}
3AccessTokenResponse
{
    "access_token": "NZ1hYNAx14IXuQ5wDsPd",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "1S8dgRO6CsyptdCC7oCDDg",
        "aud": [
            "clientID"
        ],
        "exp": 1560834548,
        "iat": 1560831128,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "4kgLZUjTTJb3HocE",
        "phone_number": "87654215",
        "phone_number_verified": false,
        "rt_hash": "-88pZBad-l6TLVVcHlpmtQ",
        "sub": "testuser"
    },
    "refresh_token": "XPTbVPniagXECrauSy12iG8zItSrWBIg1YHQ9B8l",
    "scope": "phone openid",
    "token_type": "bearer"
}
3jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
3jwe header{'alg': 'A128KW', 'enc': 'A128CBC-HS256', 'cty': 'JWT'}
3phase<--<-- 5 --- UserInfo -->-->
3do_user_info_request
kwargs:{'state': 'mEBosG7Gwjvy7Hgq', '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 NZ1hYNAx14IXuQ5wDsPd'}}
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