Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-UserInfo-Header
Test descriptionUserInfo Endpoint access with POST and bearer header
Timestamp2019-06-17T15:43:28Z

Conditions


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'}
1http response
url:https://isamfed.com:30443/test/.well-known/openid-configuration status_code:200
1ProviderConfigurationResponse
{
    "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": [
        "RSA-OAEP-256"
    ],
    "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"
}
1phase<--<-- 2 --- Registration -->-->
1register
kwargs:{'response_types': ['code'], 'grant_types': ['authorization_code'], 'application_name': 'OIC test tool', 'application_type': 'web', 'redirect_uris': ['https://op.certification.openid.net:61583/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61583/logout'], 'url': 'https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition', 'jwks_uri': 'https://op.certification.openid.net:61583/static/jwks_61583.json', 'token_endpoint_auth_method': 'private_key_jwt'}
1RegistrationRequest
{
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61583/static/jwks_61583.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61583/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61583/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": "gCU2aG1HId7ifGSTARoW",
    "client_id_issued_at": 1560786206,
    "client_secret": "9htuxPbSDlY6mLRSShiZ",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61583/static/jwks_61583.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61583/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61583/authz_cb"
    ],
    "registration_access_token": "QPeeWn4jTxrwYGfrrGw5",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=gCU2aG1HId7ifGSTARoW",
    "response_types": [
        "code"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
1phase<--<-- 3 --- AsyncAuthn -->-->
1AuthorizationRequest
{
    "client_id": "gCU2aG1HId7ifGSTARoW",
    "nonce": "jYBoSMZ6tatNAZsa",
    "redirect_uri": "https://op.certification.openid.net:61583/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "uANry8PoS8VoNGO9"
}
1redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=uANry8PoS8VoNGO9&nonce=jYBoSMZ6tatNAZsa&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61583%2Fauthz_cb&client_id=gCU2aG1HId7ifGSTARoW
1redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=uANry8PoS8VoNGO9&nonce=jYBoSMZ6tatNAZsa&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61583%2Fauthz_cb&client_id=gCU2aG1HId7ifGSTARoW
2responseResponse URL with query part
2response{'state': 'uANry8PoS8VoNGO9', 'code': 'op2tbsCfWuIDw7xKgJfvu03xVnrkcI'}
2response{'state': 'uANry8PoS8VoNGO9', 'code': 'op2tbsCfWuIDw7xKgJfvu03xVnrkcI'}
2AuthorizationResponse
{
    "code": "op2tbsCfWuIDw7xKgJfvu03xVnrkcI",
    "state": "uANry8PoS8VoNGO9"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'uANry8PoS8VoNGO9'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61583/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61583/authz_cb', 'code': 'op2tbsCfWuIDw7xKgJfvu03xVnrkcI', 'state': 'uANry8PoS8VoNGO9', 'grant_type': 'authorization_code', 'client_id': 'gCU2aG1HId7ifGSTARoW'}, 'state': 'uANry8PoS8VoNGO9', 'authn_method': 'private_key_jwt'}
2AccessTokenRequest
{
    "client_assertion": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiZ0NVMmFHMUhJZDdpZkdTVEFSb1ciLCAic3ViIjogImdDVTJhRzFISWQ3aWZHU1RBUm9XIiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJwVzV5dHI2VkdMMVpHWEFITWhoWjIwMDYyU3B5eGxUMyIsICJleHAiOiAxNTYwNzg2ODA3LCAiaWF0IjogMTU2MDc4NjIwN30.zIP1bXnPhwT5uAQGIZ64ENjG6EQB76C4orj8PDPjZ0KIt2CkKQMHJuMLH3aRQn5IQEo_NtKHqjYymxbIZounSrzrJlfUtnqIERfrOn-ajWan3nD8haG3sBQ5kGjVdYQDOdLkJ64SdEE5lq2imuAvePJo8AMCSq0iH36F2GsMYJdLiDxEhqZwQ-EvKuzjLQOVVevUcfqk6L7-qyQdaVYH4ab6OeJgTTC05i8M4y-mevSOYV2CUqoUgG2FkC7oLfygWpM-4fHosZCP_zRhWPKnEPWn22Wzt0UFKoQwSzf-wa5QRQeKP1nIHpfKVcvZtDxvoNO7834Gm2kG83q-pl9pSg",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "code": "op2tbsCfWuIDw7xKgJfvu03xVnrkcI",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61583/authz_cb",
    "state": "uANry8PoS8VoNGO9"
}
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%3A61583%2Fauthz_cb&code=op2tbsCfWuIDw7xKgJfvu03xVnrkcI&state=uANry8PoS8VoNGO9&client_assertion=eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiZ0NVMmFHMUhJZDdpZkdTVEFSb1ciLCAic3ViIjogImdDVTJhRzFISWQ3aWZHU1RBUm9XIiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJwVzV5dHI2VkdMMVpHWEFITWhoWjIwMDYyU3B5eGxUMyIsICJleHAiOiAxNTYwNzg2ODA3LCAiaWF0IjogMTU2MDc4NjIwN30.zIP1bXnPhwT5uAQGIZ64ENjG6EQB76C4orj8PDPjZ0KIt2CkKQMHJuMLH3aRQn5IQEo_NtKHqjYymxbIZounSrzrJlfUtnqIERfrOn-ajWan3nD8haG3sBQ5kGjVdYQDOdLkJ64SdEE5lq2imuAvePJo8AMCSq0iH36F2GsMYJdLiDxEhqZwQ-EvKuzjLQOVVevUcfqk6L7-qyQdaVYH4ab6OeJgTTC05i8M4y-mevSOYV2CUqoUgG2FkC7oLfygWpM-4fHosZCP_zRhWPKnEPWn22Wzt0UFKoQwSzf-wa5QRQeKP1nIHpfKVcvZtDxvoNO7834Gm2kG83q-pl9pSg&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': 'BCc5nJUfOyOazszSCrkp', 'refresh_token': '8O0mSu0MmHso6GPBQcBim6vWWER8siWoOBWJ50SD', 'scope': 'openid', 'id_token': 'eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2Iiwia2lkIjoiZ3RINHYzWXIyUXFMcmVCU3owQnlRUTh2a2Y4ZUZvMUtJaXQzcy0zQmJ3dyIsImN0eSI6IkpXVCJ9.JIkDOeVBDq3G94K4Vzq5u1U6O2-hDCLTR3eYeup288Mgaqx4Bgs7vABF6sfFUc_n6uIRSUi65rkcAc3Kmna4GBX9YfwObaMmm0QacxiTPGrA5Gvg4WseJ-kh9uaXceeBXSwxsEubB0Bsc8t4uHONgLkeBnkmBzFTn9LPaqcnWtD0bAeMNph-M8FJSO-IzUJunBDaK15sGvzGKm0sVTMCRl-1l58DzpP0ZTNHgXS2hrY1dm5f3dCms66j9u9BAU6CDqYI3l9sIx8OMXW04AvmAiAUAK2hlcCMeocEPRTbfMCT4qWVH0wluk_m_BMwWveNV-TqykdRUH_VPBuyg6DE8A.W6Z19N_ReS0pfgc8IlQESw.y_svkFZRnKJIHd5HwdCvM1QZbbYJAsrL9jN9uX_1fbhi03nq7N6Qs30KMhQEPm-ko_rJzNqFBhCbafux6sORIaZ76rh0Q0T19VM0N0vT48o-PsBajWXkMSPk8CFInqU4sx8T7VEuahlH6urz5gog9qBjsGR7p_1w34iNb2WucKneppIqFL4OPVCQfIV1FO9sgh8XkDDbVUoqn813FmyzbI8GFP9J066pCxllXEC12ZIxuV95FXXMEB3W8KR6fvb4ZhHkfU5PPI6MMRlakPNdVX9L_68eNpIOpyPVY7ox7SuHGuPFwl4h2_xYlhJobrQKtJhX2u32zgzsF6obPY0k_V17xZXzE40x3teG5JP070vU-7zszbYLApHo_ccEjYLzNY_09g1kVapb936IZ_NR5r9vMB3pTGVLxGFiFlQbLfgP-0NYmXDF77OmbrzqEUjxOg9HRAoy1CwsABF9rSEuS2TemkiQEjHv0mq2AfwXaP-6eC3pzBWKIDNtrZZkqy640OVOaWnDZ1Rm2dc7skBrJaDknBsHAwNo3oWbtQsUErMWvap4UaUma1WUjPdAT3kPf1xwbaDBpd5ylWtTjRptvZl0El76fnGlg7wIQGqQApmxQ2bJNc3DBvODMtTeEViAaZnvVNG7QOWAWl7Sa5_XyPaq_pw0UBOhObwt8T2r7c7VUKGCZltZVOYYibYB9Izv3foXt1YIW6-6yPvU88C6H7-2tThyL_2iK9Ceqzd4TvzF20nRoOcaojiiaGeRHUA3xaljfnNAFjPMmi_vsGhWYUqqpnqt71hAarDw2KmvaX6ZKH_PjfOTgzxoKh9IPko69NVCoe3ogvuapJ1_uFi5KKq_029ly1diurhIkzCHU2p6cbvQacXvAGMXpe_gsp7xhI_zm7f-8yHpajPLUYpjzUKBFvw9qwzVLnVxf5h6YOAmmtfnKSflClRJZ2JUOX9lPYv_fZ-P_B7ks3RowVHZpg.ZNdAhyRHc_CYbE3J7H8eng', 'token_type': 'bearer', 'expires_in': 3599}
3AccessTokenResponse
{
    "access_token": "BCc5nJUfOyOazszSCrkp",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "BJJG9hbumUz31hyedmRn_A",
        "aud": [
            "gCU2aG1HId7ifGSTARoW"
        ],
        "exp": 1560789627,
        "iat": 1560786207,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "jYBoSMZ6tatNAZsa",
        "rt_hash": "-441IxM1a5dLwkrdt8PLCg",
        "sub": "testuser"
    },
    "refresh_token": "8O0mSu0MmHso6GPBQcBim6vWWER8siWoOBWJ50SD",
    "scope": "openid",
    "token_type": "bearer"
}
3jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
3jwe header{'alg': 'RSA-OAEP-256', 'enc': 'A128CBC-HS256', 'kid': 'gtH4v3Yr2QqLreBSz0ByQQ8vkf8eFo1KIit3s-3Bbww', 'cty': 'JWT'}
3phase<--<-- 5 --- UserInfo -->-->
3do_user_info_request
kwargs:{'state': 'uANry8PoS8VoNGO9', 'method': 'POST', 'behavior': 'use_authorization_header'}
3request{'body': ''}
3request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo
3request_http_args{'headers': {'Authorization': 'Bearer BCc5nJUfOyOazszSCrkp', 'Content-Type': 'application/x-www-form-urlencoded'}}
3http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo status_code:200
3OpenIDSchema
{
    "sub": "testuser"
}
3OpenIDSchema
{
    "sub": "testuser"
}
3phase<--<-- 6 --- Done -->-->
3end
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