Test Info

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

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'}
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": "rQ46AEMtGLysHKlH",
    "redirect_uri": "https://op.certification.openid.net:61772/authz_cb",
    "response_type": "code id_token",
    "scope": "openid",
    "state": "3jDkr0KCAxtVn8sN"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=3jDkr0KCAxtVn8sN&nonce=rQ46AEMtGLysHKlH&response_type=code+id_token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61772%2Fauthz_cb&client_id=clientID
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=3jDkr0KCAxtVn8sN&nonce=rQ46AEMtGLysHKlH&response_type=code+id_token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61772%2Fauthz_cb&client_id=clientID
1http args{}
1responseURL with fragment
1responseid_token=eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldUIn0.M2kNwqgN53ltUjOJM-JzGi1-elhAkE8uFcVDfaj7dYTG-UTaqNDKhQ.-3sA1yKRWV7MsWPm7ugdLg.FLE7NEOXIJleMUmMmw0_8UrZIrG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A1yKRWV7MsWPm7ugdLg.FLE7NEOXIJleMUmMmw0_8UrZIrGXarF9ZHgHc6TGquCqv61kXfj7VkgT_Is-qahP4XzuFRdUcHPg_ZimrYXlWq5tuSYsluDOa3g-ox69P53Dq28pBHI0YECU6G0qror4Ho4q8b486UQJINT0vfmpU7RJVc4nQ-PauxNv-jA4Z7-HwF1yBBOXOjZsTfaqBDA2dlv8ZBBHHU-aYeXoGkyb2IVt7iF654u4WK87V4egBmV_MxIAAd3AX60RffqJE4TL2kepz_dvBj661YsFJC5PiPK3_neSJCz5YjhfTBxMQAZt1FVDvh0f_HgoT2Nxn77xr4ToZea1GvfGoILB7RSQGydXj3q7BLgmFWG0Hhj3e4iUENVDZGpxE3YG1CsNfvG-VYbh7Je6yju8NN7IR8KEAu9spmV5g4mg1mSlhKe55TWCb0gyAqgtzqyNg1ZtAlyshYb-NQEu5pziF2Xx4zBaD0m3aT1-mT2x3TjUcE3LhLP4vbB57Bs44BlkdveZOfD862iX4qHbu-cyOME-GEYNCkyn2gX1W9FTPViTN4ek65HHO45qzGGduztsLy895TIsRfBugvXmFx-YKVP27gU76Qv5y-7RZWd5to1qAu4uBhAueMqANQNOBNu_s2VSA_ufxSqwDnPjTmP_7slf1ieZHUtzlyMEzPl1hf0KlJ6SoLZs5CUYlXogvhtoEg26KSxdL0mziHIdEEn2F6uZJ4yzDP3xBitiubfswXb31kMvWWkXuMEDG28rJc_uz-6-Fv2f7i_U0SjwNLJghtDXrwjo9LXqmBEyxqaVyZ6cqLRCtEsf7zAYowa4w_vlLiZ0nIrJRNsIWqhTAIZXrrpz8uLt0O18D8wEvzBbgwl7lxGOJOUeBLD49MfgEqwjERHm_MXh._-5u3QhSjn3HWoGPx-OoHw', 'state': '3jDkr0KCAxtVn8sN', 'code': '7rqcPYPY9to9pGSDRybafo8RGRV4R4'}
1AuthorizationResponse
{
    "code": "7rqcPYPY9to9pGSDRybafo8RGRV4R4",
    "id_token": {
        "aud": [
            "clientID"
        ],
        "c_hash": "F8zm55vmBsTNWpciDL__iA",
        "exp": 1560834904,
        "iat": 1560831484,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "rQ46AEMtGLysHKlH",
        "sub": "testuser"
    },
    "state": "3jDkr0KCAxtVn8sN"
}
1phase<--<-- 4 --- AccessToken -->-->
1requestop_args: {'state': '3jDkr0KCAxtVn8sN'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61772/authz_cb'}
1do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61772/authz_cb', 'code': '7rqcPYPY9to9pGSDRybafo8RGRV4R4', 'state': '3jDkr0KCAxtVn8sN', 'grant_type': 'authorization_code', 'client_id': 'clientID'}, 'state': '3jDkr0KCAxtVn8sN', 'authn_method': 'client_secret_basic'}
1AccessTokenRequest
{
    "code": "7rqcPYPY9to9pGSDRybafo8RGRV4R4",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61772/authz_cb",
    "state": "3jDkr0KCAxtVn8sN"
}
1request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
1request_http_args{'headers': {'Authorization': 'Basic Y2xpZW50SUQ6Y2xpZW50U2VjcmV0', 'Content-Type': 'application/x-www-form-urlencoded'}}
1requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61772%2Fauthz_cb&code=7rqcPYPY9to9pGSDRybafo8RGRV4R4&state=3jDkr0KCAxtVn8sN
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
2response{'access_token': '5eGibWdVjm90xCRmsau6', 'refresh_token': '2720qVGyl5MAF6lEjENYaCJ6dDSs2TZRrZd8Kdlj', 'scope': 'openid', 'id_token': 'eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldUIn0.NLEAx6MP4UX0XtN78l2gnY4skR8qrRGvI2Oc4rIsGeQ3W1Nm00OLrQ.WL6tu9zAl1RIKnDdF_hynQ.CeMfn8WXFqepNdu0iEKwJLk7hWSNvWI24_kQDyaBkxZVhiirEKAC8J6A05sVzKJWuBv6V9zBRccE1cWbFdDnhXozWKS4bE41hV8lmst1w7jzNoOozZhwvun5mbTcQjWLkkJf689dh38qP4tzAwMz7AvCfLCddts_F9lfZFEjQ_YATAidBqnIir_p04QfDbnhJJ7c-lu58C6oW-vyP4zrv5_uKaYfcMnOV5XULDtiQap_0Vud6FCoECozyLAbUz8798J9RB-M9OlPq7dR4pcuxcB4wdn7PRU4ZIiPWvcllExSDnp-6VVNJLQcKwH3gH14qWG0tJSq2KQrV7diycPyMy7r0oNsxhKll7-_uv0pndOx9F-aEXR73MnzmRmyzuaDb6uZ7nOiUw5IsX8a0uIFwSLUYQqPB3Iy_szLV_ESD6nJaDKGJ7n6CSjSIYKaYmFO-3i54ORii762P5GfJUnREOCAcF2SdiMT9_F8K2DblMy4DLIiDdgQ-MCNnx_AFl34IxMdQZlOyG1pVkfS8fJIpNV3lMqp8I_AhVWfQBpgw-pjkcYGpDlRBBUAFrjpCJ9ZBOiTU4MD6XmK_VLGh8VIimENcH20EGwYsdSwe7FXTIIo65VOf4Qa1AOdT8niO1UIiuDa7TP8b3vRIL69VnuS3cBHgry3IbzbwndWRB11t2ZEVNBbOxYRAC3y80cCHYY7I2fbAO7lf8WOuJLOPASR5FYhgqKKeYoPgPcRc2yhY_9gpXhIxk0vX2ybjH7g2vuB1svhp4P_vTi874uPwKmeLdcm1jYaBpfd8iqKyQSCrRypGsM8g7tQwqh0STEITgcAgoh_B9QzL8zaLtCSfpCv3CWw0VoawOO5VceFVXayf7KYG5oplUn8UmC6pheK95coQwzbJUAGcPIyXzzRfPiaXEyqD5feVMeCRxO_ioghXtJzJRQYWdg3onOe7Us-HW4Q.3_rU83rIlSTI_C73nrDXgA', 'token_type': 'bearer', 'expires_in': 3599}
2AccessTokenResponse
{
    "access_token": "5eGibWdVjm90xCRmsau6",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "YuKnPOX7MLYCWZUf3GnUzg",
        "aud": [
            "clientID"
        ],
        "exp": 1560834906,
        "iat": 1560831486,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "rQ46AEMtGLysHKlH",
        "rt_hash": "OKkUZ_vMpURXomibX95R4g",
        "sub": "testuser"
    },
    "refresh_token": "2720qVGyl5MAF6lEjENYaCJ6dDSs2TZRrZd8Kdlj",
    "scope": "openid",
    "token_type": "bearer"
}
2jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
2jwe header{'alg': 'A128KW', 'enc': 'A128CBC-HS256', 'cty': 'JWT'}
2phase<--<-- 5 --- UserInfo -->-->
2do_user_info_request
kwargs:{'state': '3jDkr0KCAxtVn8sN', 'method': 'POST', 'behavior': 'use_authorization_header'}
2request{'body': ''}
2request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo
2request_http_args{'headers': {'Authorization': 'Bearer 5eGibWdVjm90xCRmsau6', 'Content-Type': 'application/x-www-form-urlencoded'}}
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo status_code:200
2OpenIDSchema
{
    "sub": "testuser"
}
2OpenIDSchema
{
    "sub": "testuser"
}
2phase<--<-- 6 --- Done -->-->
2end
2assertionVerifyResponse
2conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
2conditionDone: status=OK

Result

PASSED