Test Info

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

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_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 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'}
1RegistrationRequest
{
    "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"
}
1http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition status_code:200
1RegistrationResponse
{
    "application_type": "web",
    "client_id": "V8aY4YhH2qsJaTu8gmw0",
    "client_id_issued_at": 1560755704,
    "client_secret": "yxBgnHklqYrMO31y0S5M",
    "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": "ZkP4ydEog8Quq7o8iFfc",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=V8aY4YhH2qsJaTu8gmw0",
    "response_types": [
        "code",
        "id_token"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
1phase<--<-- 3 --- AsyncAuthn -->-->
1AuthorizationRequest
{
    "client_id": "V8aY4YhH2qsJaTu8gmw0",
    "nonce": "sT03hByULCsPG9E3",
    "redirect_uri": "https://op.certification.openid.net:61365/authz_cb",
    "response_type": "code id_token",
    "scope": "openid",
    "state": "xIMeLgz6iCzS3DyI"
}
1redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=xIMeLgz6iCzS3DyI&nonce=sT03hByULCsPG9E3&response_type=code+id_token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61365%2Fauthz_cb&client_id=V8aY4YhH2qsJaTu8gmw0
1redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=xIMeLgz6iCzS3DyI&nonce=sT03hByULCsPG9E3&response_type=code+id_token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61365%2Fauthz_cb&client_id=V8aY4YhH2qsJaTu8gmw0
2http args{}
2responseURL with fragment
2responseid_token=eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJub25jZSI6InNUMDNoQnlVTENzUEc5RTMiLCJpYXQiOjE1NjA3NTU3MDUsImlzcyI6Imh0dHBzOi8vaXNhbWZlZC5jb206MzA0NDMvdGVzdCIsInN1YiI6InRlc3R1c2VyIiwiZXhwIjoxNTYwNzU5MTI1LCJjX2hhc2giOiJf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JpuWFvTQ-Oy7b-CiJVVZt_ZFjAMuW2GpW2YlYy4eekg2TP_4LLNp1UaaQ2qHdryfDvjVnNbzC2YlZzQ', 'state': 'xIMeLgz6iCzS3DyI', 'code': '93Z9ZSGaTY4AnUSRuvxe6c3hUSlx3G'}
2AuthorizationResponse
{
    "code": "93Z9ZSGaTY4AnUSRuvxe6c3hUSlx3G",
    "id_token": {
        "aud": [
            "V8aY4YhH2qsJaTu8gmw0"
        ],
        "c_hash": "_2ae1EMXTbK7_rv-d2D_jQ",
        "exp": 1560759125,
        "iat": 1560755705,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "sT03hByULCsPG9E3",
        "sub": "testuser"
    },
    "state": "xIMeLgz6iCzS3DyI"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'xIMeLgz6iCzS3DyI'}, 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': '93Z9ZSGaTY4AnUSRuvxe6c3hUSlx3G', 'state': 'xIMeLgz6iCzS3DyI', 'grant_type': 'authorization_code', 'client_id': 'V8aY4YhH2qsJaTu8gmw0'}, 'state': 'xIMeLgz6iCzS3DyI', 'authn_method': 'private_key_jwt'}
2AccessTokenRequest
{
    "client_assertion": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiVjhhWTRZaEgycXNKYVR1OGdtdzAiLCAic3ViIjogIlY4YVk0WWhIMnFzSmFUdThnbXcwIiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJxaXBGZEp5Z1V6eVpUWHpBTGVoQU9zaFluRTZHZUt4bSIsICJleHAiOiAxNTYwNzU2MzA1LCAiaWF0IjogMTU2MDc1NTcwNX0.u_GxcwkxsXwNBZ1xspHeOdMR2ka_74dieeYiNSu4jsbOWCXtyfeJyzN2ASpPzAIh_wzc-NKF1eR_SyD0NryBXt-ksRw8GDuIN9rvuyEbfyNTtUI3D2RxnAev5XxRWRwcvFx19EgYQrcawvfL000ps5OUhRVZUe9_4G_MyvqR_QZPfYM_RiHBe-77ot3W1h1badO63DKEgRMul6o-KJ0TWEbmiTkgG4whkz1bRTVuXKtSF8IJX_79ptGd8eYIJYlHrPGUl9gfpTpONMX9MFVPyk14EopZV7MlV57zVsf8zk7BRFva4llXlh1-_NZHbqw4k40EB88P_uZXfEgDSxHTuA",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "code": "93Z9ZSGaTY4AnUSRuvxe6c3hUSlx3G",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61365/authz_cb",
    "state": "xIMeLgz6iCzS3DyI"
}
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=93Z9ZSGaTY4AnUSRuvxe6c3hUSlx3G&state=xIMeLgz6iCzS3DyI&client_assertion=eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiVjhhWTRZaEgycXNKYVR1OGdtdzAiLCAic3ViIjogIlY4YVk0WWhIMnFzSmFUdThnbXcwIiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJxaXBGZEp5Z1V6eVpUWHpBTGVoQU9zaFluRTZHZUt4bSIsICJleHAiOiAxNTYwNzU2MzA1LCAiaWF0IjogMTU2MDc1NTcwNX0.u_GxcwkxsXwNBZ1xspHeOdMR2ka_74dieeYiNSu4jsbOWCXtyfeJyzN2ASpPzAIh_wzc-NKF1eR_SyD0NryBXt-ksRw8GDuIN9rvuyEbfyNTtUI3D2RxnAev5XxRWRwcvFx19EgYQrcawvfL000ps5OUhRVZUe9_4G_MyvqR_QZPfYM_RiHBe-77ot3W1h1badO63DKEgRMul6o-KJ0TWEbmiTkgG4whkz1bRTVuXKtSF8IJX_79ptGd8eYIJYlHrPGUl9gfpTpONMX9MFVPyk14EopZV7MlV57zVsf8zk7BRFva4llXlh1-_NZHbqw4k40EB88P_uZXfEgDSxHTuA&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': 'e36DE195v4Ib4soTIfYT', 'refresh_token': '3BSwvyGpJm0W2UpgVFd5TKjJOu5w75RqQMlRjbld', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoiSUx2RDMyQlZFLTdmTmdSMXVZa2gzZyIsIm5vbmNlIjoic1QwM2hCeVVMQ3NQRzlFMyIsImlhdCI6MTU2MDc1NTcwNiwiaXNzIjoiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My90ZXN0IiwiYXRfaGFzaCI6IjczNi1yT1RlMVlvMTgzODl4MHZZV2ciLCJzdWIiOiJ0ZXN0dXNlciIsImV4cCI6MTU2MDc1OTEyNiwiYXVkIjoiVjhhWTRZaEgycXNKYVR1OGdtdzAifQ.G_PtgoX6v-eiQpo10ZqhaJC7EJ_q_By6zYxUDlVaf7TQdQoOBklGAE350LeF0n1UxkMPGT5kOihe2vvw9vi7_ylDVJtlpbcqJ-omw61BDl_SUEzSShkzEVFw3Dv7L4BxoGPM2RP5_WxBsQF37xGqSj_NgqS7vxSx-zQyRwUrvL_hy_LQ5yP6ttlnUzdo_38aRCQrMqKkPcx0swcuZSq0Z3URJHrwYUP21HhBvVSbSeISfqaZLNbdvMznkusFMsPB4r8_qzyski7dYCW7aDxW-dsTi_mt3Scyd1UONVVAoIa2tDb8SXxZF72_R51ZYs3-cHbYrtjBGSEV-XwPNsk8tQ', 'token_type': 'bearer', 'expires_in': 3599}
3AccessTokenResponse
{
    "access_token": "e36DE195v4Ib4soTIfYT",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "736-rOTe1Yo18389x0vYWg",
        "aud": [
            "V8aY4YhH2qsJaTu8gmw0"
        ],
        "exp": 1560759126,
        "iat": 1560755706,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "sT03hByULCsPG9E3",
        "rt_hash": "ILvD32BVE-7fNgR1uYkh3g",
        "sub": "testuser"
    },
    "refresh_token": "3BSwvyGpJm0W2UpgVFd5TKjJOu5w75RqQMlRjbld",
    "scope": "openid",
    "token_type": "bearer"
}
3jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
3phase<--<-- 5 --- UserInfo -->-->
3do_user_info_request
kwargs:{'state': 'xIMeLgz6iCzS3DyI', 'method': 'POST', 'behavior': 'use_authorization_header'}
3request{'body': ''}
3request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo
3request_http_args{'headers': {'Authorization': 'Bearer e36DE195v4Ib4soTIfYT', 'Content-Type': 'application/x-www-form-urlencoded'}}
4http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo status_code:200
4OpenIDSchema
{
    "sub": "testuser"
}
4OpenIDSchema
{
    "sub": "testuser"
}
4phase<--<-- 6 --- Done -->-->
4end
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