Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-UserInfo-Body
Test descriptionUserInfo Endpoint access with POST and bearer body
Timestamp2019-06-17T15:09:41Z

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": [
        "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"
}
0phase<--<-- 2 --- Registration -->-->
0register
kwargs:{'response_types': ['code token'], 'grant_types': ['authorization_code', 'implicit'], 'application_name': 'OIC test tool', 'application_type': 'web', 'redirect_uris': ['https://op.certification.openid.net:61707/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61707/logout'], 'url': 'https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition', 'jwks_uri': 'https://op.certification.openid.net:61707/static/jwks_61707.json', 'token_endpoint_auth_method': 'private_key_jwt'}
0RegistrationRequest
{
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "implicit",
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61707/static/jwks_61707.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61707/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61707/authz_cb"
    ],
    "response_types": [
        "code token"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
0http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition status_code:200
0RegistrationResponse
{
    "application_type": "web",
    "client_id": "hbqH8Akpk3Nd2LJauiC7",
    "client_id_issued_at": 1560784179,
    "client_secret": "8YuVCq5v8uAjvU99qEpA",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "implicit",
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61707/static/jwks_61707.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61707/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61707/authz_cb"
    ],
    "registration_access_token": "iiQOHzdl9sC1VhEQFtwT",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=hbqH8Akpk3Nd2LJauiC7",
    "response_types": [
        "code",
        "token"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
0phase<--<-- 3 --- AsyncAuthn -->-->
1AuthorizationRequest
{
    "client_id": "hbqH8Akpk3Nd2LJauiC7",
    "nonce": "Z57hKz6LoFdUVrEq",
    "redirect_uri": "https://op.certification.openid.net:61707/authz_cb",
    "response_type": "code token",
    "scope": "openid",
    "state": "ALo1j48BDuxfNEvg"
}
1redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=ALo1j48BDuxfNEvg&nonce=Z57hKz6LoFdUVrEq&response_type=code+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61707%2Fauthz_cb&client_id=hbqH8Akpk3Nd2LJauiC7
1redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=ALo1j48BDuxfNEvg&nonce=Z57hKz6LoFdUVrEq&response_type=code+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61707%2Fauthz_cb&client_id=hbqH8Akpk3Nd2LJauiC7
1http args{}
2responseURL with fragment
2responseaccess_token=GqJvXhdzl8Iq92X3rHG6&state=ALo1j48BDuxfNEvg&expires_in=3599&token_type=bearer&code=rsbgXeu7ICfheGx4kwuENgd63vOBEX&scope=openid
2response{'access_token': 'GqJvXhdzl8Iq92X3rHG6', 'state': 'ALo1j48BDuxfNEvg', 'expires_in': 3599, 'token_type': 'bearer', 'code': 'rsbgXeu7ICfheGx4kwuENgd63vOBEX', 'scope': 'openid'}
2AuthorizationResponse
{
    "access_token": "GqJvXhdzl8Iq92X3rHG6",
    "code": "rsbgXeu7ICfheGx4kwuENgd63vOBEX",
    "expires_in": 3599,
    "scope": "openid",
    "state": "ALo1j48BDuxfNEvg",
    "token_type": "bearer"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'ALo1j48BDuxfNEvg'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61707/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61707/authz_cb', 'code': 'rsbgXeu7ICfheGx4kwuENgd63vOBEX', 'state': 'ALo1j48BDuxfNEvg', 'grant_type': 'authorization_code', 'client_id': 'hbqH8Akpk3Nd2LJauiC7'}, 'state': 'ALo1j48BDuxfNEvg', 'authn_method': 'private_key_jwt'}
2AccessTokenRequest
{
    "client_assertion": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiaGJxSDhBa3BrM05kMkxKYXVpQzciLCAic3ViIjogImhicUg4QWtwazNOZDJMSmF1aUM3IiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJUc3JGYzBSZW40Z1hiR2RVb0cxSWprV09zQk1UMU1mZiIsICJleHAiOiAxNTYwNzg0NzgxLCAiaWF0IjogMTU2MDc4NDE4MX0.dbTODQvH9CZT5iONEIcXsivZWliWwYlP1ajfjDGQzDd87Maw3x4bpoNfdCOxMjjTkyrMY6IpunT7LLRpRwO-ue7JRbpaLCG7hYtU5Vm9fgp8jiVIx8dxHMn935VJTUXed0HdXLSuK6cmBFH0r30qsgMhiuAjMK6cM3S0pVKPiG7PG9gyCdg9AT9HEOaVgAcbXbapxUII7jYYp_YmZPjv5Qb2R09TF2YG1Fs1rPbGTQQryPu9IyyyefgNoDNXP9rLRASto_HQVpdhmi1FjmM1KdXmtHgusbiEYytRBmvMAV08S3IUDFawl9WuJde2mBqjCagpBAbQaAVTQg4elqXv5g",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "code": "rsbgXeu7ICfheGx4kwuENgd63vOBEX",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61707/authz_cb",
    "state": "ALo1j48BDuxfNEvg"
}
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%3A61707%2Fauthz_cb&code=rsbgXeu7ICfheGx4kwuENgd63vOBEX&state=ALo1j48BDuxfNEvg&client_assertion=eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiaGJxSDhBa3BrM05kMkxKYXVpQzciLCAic3ViIjogImhicUg4QWtwazNOZDJMSmF1aUM3IiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJUc3JGYzBSZW40Z1hiR2RVb0cxSWprV09zQk1UMU1mZiIsICJleHAiOiAxNTYwNzg0NzgxLCAiaWF0IjogMTU2MDc4NDE4MX0.dbTODQvH9CZT5iONEIcXsivZWliWwYlP1ajfjDGQzDd87Maw3x4bpoNfdCOxMjjTkyrMY6IpunT7LLRpRwO-ue7JRbpaLCG7hYtU5Vm9fgp8jiVIx8dxHMn935VJTUXed0HdXLSuK6cmBFH0r30qsgMhiuAjMK6cM3S0pVKPiG7PG9gyCdg9AT9HEOaVgAcbXbapxUII7jYYp_YmZPjv5Qb2R09TF2YG1Fs1rPbGTQQryPu9IyyyefgNoDNXP9rLRASto_HQVpdhmi1FjmM1KdXmtHgusbiEYytRBmvMAV08S3IUDFawl9WuJde2mBqjCagpBAbQaAVTQg4elqXv5g&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
2response{'access_token': 'eiiOStqAvyI0oGU3z2AT', 'refresh_token': '6oHV6xUe61ifCQaxEvCgyK0ptIxSgY8hN68PXpgx', 'scope': 'openid', 'id_token': 'eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2Iiwia2lkIjoiZ3RINHYzWXIyUXFMcmVCU3owQnlRUTh2a2Y4ZUZvMUtJaXQzcy0zQmJ3dyIsImN0eSI6IkpXVCJ9.UxOpBW_ErM7D5oAOqFbzj9jHc_kIX_2P3g5j7er5El8fO3dZS198fFdIxgeYkkXZCpw3HiJMo72mhP4Twd5R5x0YI37JvliVcbndNGcFazg4DYyFiCPxYox6QAalq_UjzFLWK-iOdRVS_Uk9f6d5FplrnCQz9PvIy8WnMcVD-5f4Y_ErCJzgk5Kze355wU_4Dc1SDkJRSjto4WjMERcEmoUrCD7SILIqqyh7YBaTOt2tmHutNO8kBj4pKiAPZLVrWAltvFnhgIDZtglHIkhOgbUMFsB11AtSsRNkdQIt89_3TubZRAapKd6NqfMkHr2YGmbXU5FGOhYxqEQWKzaEHA.VPg7o0AVzo6sSHfbly3uog.zQG90BkbZXjvWsV0Wtv2V8cVDDCZfCnEIsFQrydTdNTgOIG-AsaNvtM7BQ1cL27mdsMbZmW7B9TX8bLBI6c4m_NqmmxDQloWUQ5Zn8x1Ihec8pWD_r3IlvL7CEFFW2JlouaIe8kvcXaxtIodkUr219b_QzYx49wG7fMW_s0p9rjkYkFcdcRk8hmr-dQHGvjyUWR1WNzHzwQyI6CKMkzOgfdcACaTuiKHPo7Tr67HzJVrC7urDOcBHhtyzY20owapsONru6qA_gsVGntH25qXRNVSdFqUWyyqyoxG6hf2gAViiPiQ3JTtjPGp_DsX9zDYhnYysWpHVdOMBY1IGQtPjlrdy6_5Xm2GuOVrlRyCWNzLb9QmTnfN7x6mpMSEEvmHzoxgqoaBTsuSAADY_KZ1uOkMN8CiFSnChAwb079PQ5882uvBvv3eWhtbS3OoRmLjUnNNNQsb5szeL8pCB1w5ubDCu-nkjdOgzthL0YqXgokgQBl-OCDgCzliRvVG5Dtz5qbDSwhbEkv497hFhrQvHXO664SDMt5xyxwkJvYVbwg_tksccA_Vv53ePLUoeUVxeQkyc00RVrhPu1o_MYMQyk8i8C3NCps74WLTu2zJgS5OzbwhwdMQwp1ZLHuyy4SKAgHj0jfiHzr4Ax-KPAwAG5S2y33tYpZ3VATeNc_kyWI4zllnE4zPntjJ3MUQjNU112sVcLSJhWdDCPDxw-PKh5gFZV-EbTLg260icJ6QxxgvUkTGwMiR7Ly2l0O4n0cUld0gR-sWHQp7JetOfYwbQjMcJG-KbMc_R-e9BDDUbsO9o-dUXWSp-_fNuFPX1f37zQ_Mtakw-XYIVRfh-hwJPB6tKFMFB2Cv_774s7_GlOJpiepYg-HhwmUCAfctE0Oyo8OMDiYDEuXpolUUuw7Zli0r-Uw3aYg6oexqe9IN_tCJajntQc_niH-hj7C63OWAsxRApQXIxOCNVbLTYO4Vfw._fzFfJ3QCecuMf57Dbpyug', 'token_type': 'bearer', 'expires_in': 3599}
2AccessTokenResponse
{
    "access_token": "eiiOStqAvyI0oGU3z2AT",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "fXXLZM0QA6_YSQlO8dQj_A",
        "aud": [
            "hbqH8Akpk3Nd2LJauiC7"
        ],
        "exp": 1560787601,
        "iat": 1560784181,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "Z57hKz6LoFdUVrEq",
        "rt_hash": "qBi35tuFdEBa9v7nZPhqDw",
        "sub": "testuser"
    },
    "refresh_token": "6oHV6xUe61ifCQaxEvCgyK0ptIxSgY8hN68PXpgx",
    "scope": "openid",
    "token_type": "bearer"
}
2jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
2jwe header{'alg': 'RSA-OAEP-256', 'enc': 'A128CBC-HS256', 'kid': 'gtH4v3Yr2QqLreBSz0ByQQ8vkf8eFo1KIit3s-3Bbww', 'cty': 'JWT'}
2phase<--<-- 5 --- UserInfo -->-->
2do_user_info_request
kwargs:{'state': 'ALo1j48BDuxfNEvg', 'method': 'POST', 'authn_method': 'token_in_message_body'}
2request{'body': 'access_token=eiiOStqAvyI0oGU3z2AT'}
2request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo
2request_http_args{'headers': {'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