Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-scope-phone
Test descriptionScope requesting phone claims
Timestamp2019-06-17T08:23:39Z

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 -->-->
0not expected to doDynamic registration
0phase<--<-- 3 --- AsyncAuthn -->-->
0AuthorizationRequest
{
    "client_id": "clientID",
    "nonce": "CHgZHsqD1b0bOPU4",
    "redirect_uri": "https://op.certification.openid.net:61578/authz_cb",
    "response_type": "code id_token token",
    "scope": "openid phone",
    "state": "c4mMKC7mJ8VNSPr5"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=c4mMKC7mJ8VNSPr5&nonce=CHgZHsqD1b0bOPU4&response_type=code+id_token+token&scope=openid+phone&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61578%2Fauthz_cb&client_id=clientID
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=c4mMKC7mJ8VNSPr5&nonce=CHgZHsqD1b0bOPU4&response_type=code+id_token+token&scope=openid+phone&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61578%2Fauthz_cb&client_id=clientID
2http args{}
2responseURL with fragment
2responseaccess_token=A4muyW9MIslC06ECkRKK&state=c4mMKC7mJ8VNSPr5&expires_in=3599&token_type=bearer&code=YBWdDwD9JrzBzGOTQ0Jwp2Ev3s9A35&scope=phone%20openid&id_token=eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJwaG9uZV9udW1iZXJfdmVyaWZpZWQiOmZhbHNlLCJub25jZSI6IkNIZ1pIc3FEMWIwYk9QVTQiLCJwaG9uZV9udW1iZXIiOiI4NzY1NDIxNSIsImlhdCI6MTU2MDc1OTgxNywiaXNzIjoiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My90ZXN0IiwiYXRfaGFzaCI6IjN2MzBITkgyT25xN2JpdzlmZkZmamciLCJzdWIiOiJ0ZXN0dXNlciIsImV4cCI6MTU2MDc2MzIzNywiY19oYXNoIjoiSzIteERXQnNuWi1DdGdzUU44eGZfQSIsImF1ZCI6ImNsaWVudElEIn0.rBzsO1FHqT6ZaTDNGFMjywGsr06CpSPjfEAJEwSQH88khvipz7dB_jP_tT3slHciaaZhTejk0d8huKitrwON_ZEeXFGwooBw0d_PmqdINCDQGP7xnYVw0TfVHbe9MQ5lZ8JP4RmWeVIddUrfQxyopk5CrsTm_Nm5WiqMeKOYdRpqrytB3r-2tgoimp_IjgLGWxceukak8PXxOOML-xhs4ubJw-Mp7md2vAjcCOKFiKf-e7YY95knqpO8r1l71kA_9YEOUpbVwLe9trnhhdu1BkpaEnmXsxqb6aU2ReqQO1qqkLQ2FGdtkMGiLbfvjFDtGrlsM9cvnY8ho_TqjIJcRg
2response{'access_token': 'A4muyW9MIslC06ECkRKK', 'state': 'c4mMKC7mJ8VNSPr5', 'expires_in': 3599, 'token_type': 'bearer', 'code': 'YBWdDwD9JrzBzGOTQ0Jwp2Ev3s9A35', 'scope': 'phone openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJwaG9uZV9udW1iZXJfdmVyaWZpZWQiOmZhbHNlLCJub25jZSI6IkNIZ1pIc3FEMWIwYk9QVTQiLCJwaG9uZV9udW1iZXIiOiI4NzY1NDIxNSIsImlhdCI6MTU2MDc1OTgxNywiaXNzIjoiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My90ZXN0IiwiYXRfaGFzaCI6IjN2MzBITkgyT25xN2JpdzlmZkZmamciLCJzdWIiOiJ0ZXN0dXNlciIsImV4cCI6MTU2MDc2MzIzNywiY19oYXNoIjoiSzIteERXQnNuWi1DdGdzUU44eGZfQSIsImF1ZCI6ImNsaWVudElEIn0.rBzsO1FHqT6ZaTDNGFMjywGsr06CpSPjfEAJEwSQH88khvipz7dB_jP_tT3slHciaaZhTejk0d8huKitrwON_ZEeXFGwooBw0d_PmqdINCDQGP7xnYVw0TfVHbe9MQ5lZ8JP4RmWeVIddUrfQxyopk5CrsTm_Nm5WiqMeKOYdRpqrytB3r-2tgoimp_IjgLGWxceukak8PXxOOML-xhs4ubJw-Mp7md2vAjcCOKFiKf-e7YY95knqpO8r1l71kA_9YEOUpbVwLe9trnhhdu1BkpaEnmXsxqb6aU2ReqQO1qqkLQ2FGdtkMGiLbfvjFDtGrlsM9cvnY8ho_TqjIJcRg'}
2AuthorizationResponse
{
    "access_token": "A4muyW9MIslC06ECkRKK",
    "code": "YBWdDwD9JrzBzGOTQ0Jwp2Ev3s9A35",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "3v30HNH2Onq7biw9ffFfjg",
        "aud": [
            "clientID"
        ],
        "c_hash": "K2-xDWBsnZ-CtgsQN8xf_A",
        "exp": 1560763237,
        "iat": 1560759817,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "CHgZHsqD1b0bOPU4",
        "phone_number": "87654215",
        "phone_number_verified": false,
        "sub": "testuser"
    },
    "scope": "phone openid",
    "state": "c4mMKC7mJ8VNSPr5",
    "token_type": "bearer"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'c4mMKC7mJ8VNSPr5'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61578/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61578/authz_cb', 'code': 'YBWdDwD9JrzBzGOTQ0Jwp2Ev3s9A35', 'state': 'c4mMKC7mJ8VNSPr5', 'grant_type': 'authorization_code', 'client_id': 'clientID'}, 'state': 'c4mMKC7mJ8VNSPr5', 'authn_method': 'client_secret_basic'}
2AccessTokenRequest
{
    "code": "YBWdDwD9JrzBzGOTQ0Jwp2Ev3s9A35",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61578/authz_cb",
    "state": "c4mMKC7mJ8VNSPr5"
}
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%3A61578%2Fauthz_cb&code=YBWdDwD9JrzBzGOTQ0Jwp2Ev3s9A35&state=c4mMKC7mJ8VNSPr5
3http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
3response{'access_token': 'FdpiSXMgBDRTpZl9Cqrf', 'refresh_token': 'dkQ0TknxRRWXHj1v7Y1kdetLaPFEYcfWw9yNVyPg', 'scope': 'phone openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJwaG9uZV9udW1iZXJfdmVyaWZpZWQiOmZhbHNlLCJydF9oYXNoIjoidUNvTXNQZ0N1SmUyMHJONEJDaS1jZyIsIm5vbmNlIjoiQ0hnWkhzcUQxYjBiT1BVNCIsInBob25lX251bWJlciI6Ijg3NjU0MjE1IiwiaWF0IjoxNTYwNzU5ODE4LCJpc3MiOiJodHRwczovL2lzYW1mZWQuY29tOjMwNDQzL3Rlc3QiLCJhdF9oYXNoIjoiU0p4UDlQb20wdHlFSUU5eEFWN3RLUSIsInN1YiI6InRlc3R1c2VyIiwiZXhwIjoxNTYwNzYzMjM4LCJhdWQiOiJjbGllbnRJRCJ9.NsK8QeobIPKkqOIS6q6aWSchNkCMWM-LKoJ2sMmApn4gMTa8x_3f5eS-y8zCNU6rFhrrpc2rfBUG82GjrPQhRpMDihiqodoQkJPNnChmpVwq9a7M4jEafqjIYCjHaaO0WMtgS6fG2wwa9qazbBfUyIhzrI2vM13edBsBJY4e2VtmcKsYxncOpLiewjJpp7Gs4RGTbvJFiLJL8ay-iIk-AN9XfCQFvfWoAaE_ciP8g4ujrZZZyfNof5e-GWEP-vHmlNwj8YpGfrgBUR4CxgvwkIZpehGZdhALl63OyIqttrYjF0bypEvOHlze8vilsOR7cJ_5aU6zwp9uF0imkAZEUA', 'token_type': 'bearer', 'expires_in': 3599}
3AccessTokenResponse
{
    "access_token": "FdpiSXMgBDRTpZl9Cqrf",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "SJxP9Pom0tyEIE9xAV7tKQ",
        "aud": [
            "clientID"
        ],
        "exp": 1560763238,
        "iat": 1560759818,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "CHgZHsqD1b0bOPU4",
        "phone_number": "87654215",
        "phone_number_verified": false,
        "rt_hash": "uCoMsPgCuJe20rN4BCi-cg",
        "sub": "testuser"
    },
    "refresh_token": "dkQ0TknxRRWXHj1v7Y1kdetLaPFEYcfWw9yNVyPg",
    "scope": "phone openid",
    "token_type": "bearer"
}
3jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
3phase<--<-- 5 --- UserInfo -->-->
3do_user_info_request
kwargs:{'state': 'c4mMKC7mJ8VNSPr5', '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 FdpiSXMgBDRTpZl9Cqrf'}}
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