Test Info

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

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": "ziINiI7k9sjzGJzZ",
    "redirect_uri": "https://op.certification.openid.net:61764/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "G5X0iQG5XUNhmQ15"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=G5X0iQG5XUNhmQ15&nonce=ziINiI7k9sjzGJzZ&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61764%2Fauthz_cb&client_id=clientID
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=G5X0iQG5XUNhmQ15&nonce=ziINiI7k9sjzGJzZ&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61764%2Fauthz_cb&client_id=clientID
1responseResponse URL with query part
1response{'state': 'G5X0iQG5XUNhmQ15', 'code': 'emWClgeObA9iEIF3MLOKLvycKITGdG'}
1response{'state': 'G5X0iQG5XUNhmQ15', 'code': 'emWClgeObA9iEIF3MLOKLvycKITGdG'}
1AuthorizationResponse
{
    "code": "emWClgeObA9iEIF3MLOKLvycKITGdG",
    "state": "G5X0iQG5XUNhmQ15"
}
1phase<--<-- 4 --- AccessToken -->-->
1requestop_args: {'state': 'G5X0iQG5XUNhmQ15'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61764/authz_cb'}
1do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61764/authz_cb', 'code': 'emWClgeObA9iEIF3MLOKLvycKITGdG', 'state': 'G5X0iQG5XUNhmQ15', 'grant_type': 'authorization_code', 'client_id': 'clientID'}, 'state': 'G5X0iQG5XUNhmQ15', 'authn_method': 'client_secret_basic'}
1AccessTokenRequest
{
    "code": "emWClgeObA9iEIF3MLOKLvycKITGdG",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61764/authz_cb",
    "state": "G5X0iQG5XUNhmQ15"
}
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%3A61764%2Fauthz_cb&code=emWClgeObA9iEIF3MLOKLvycKITGdG&state=G5X0iQG5XUNhmQ15
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
2response{'access_token': 'g7giKAxrKUuyI9wAzUKa', 'refresh_token': 'dOXcftqpb028iAKauOW4Hq18hIx1WOAQ51W0gCpX', 'scope': 'openid', 'id_token': 'eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldUIn0.7UnU_XDNMIcU03yBQ1s24J2AuvlDiWjzE5YoE1Zy_xe1KTjfISV3yw.Abnmi8OkIBr-3uO0ZMQM8w.Y3Kc7b2kFYcBjxpj1rU6-cDMO4nT87tNl8drp6scGJ_kwwYwkoKWPag0b8EcYwLLCWSEH314JDYSF7FH28-HOXdw33Uj6GwBIDZMNpv268oGxAvyrI-6Gi3k_RkJiMX0vM6Xirgnnsmf2xwi0uysEmJelZwLkhgDn7EWmBTTWUcgYMuT_ki-YX1B3ipLNApxK4vKT3Krov_AyjZR_gJEL5-J1pCfbqKgFfHlNDJHGcp4MqhkkegN7eyyZ7aEu4wP8CyY05CbBTOo-S7tpCCSZnvLgHEFJufH8P8nn9KzpnwTPDSicSL1T5VKQi6hYOvNytqWNVMLFo8AUbsPbq_s--RzpGUmha-kH7nLLEpCxrNW9q1GUngRhZ-4EycLl7R1B3JqFrMsB-Ja69IZaZXL_bCQMfjip0e6SZLI5LOQ_bWPu8Wi6ruyDn7-4hNHBbKSs0ip59xh862LgfFPyla8_Oy-gXCsQSFeZjr5c2f7UyZEjXAqV1fr_pFXZZjsR5tfJANnhhgPfe7XIUn1Ds6bQtG8sNsRVFQCHZNnCI72LQLumgNmEYvR-tOS_I_qUl-DRtsWwHE37MlcTONTX1gKNe0v5I3uwX1YLeiqO_FGmnGAMV50XxNc_zkTqRIUaImc7wZpirpF0ES0S1hbIaVgYX7SPttLcgN2FnhL67F4YADu_uwerQcpwxpvqu7KZoiTUV7HMhTVQZIyDneo60OiXMVHVg0lIlmwv_MIy0iMt9XoA2JtMQ5lc1tvDnfqj5dcsllYNOB2RS5utMXN-2gAEIIwjsmLvDeuOaa_CuzE4dxoEo0DApoMOAiJkls4P5qf0t_shAWPZI4Dxwf9IZoIFfHzq9BvEt5nesQmB_TRl_6s50-4ntTZSk50QVGdUfpBd5rOqM5UxWndU-kQl-LYC5xt6ICdu5UtleFHqIFUXUUPsmW39fkixuwU59kJajnJ.25NwA6XEtdUX89sBpY_QjQ', 'token_type': 'bearer', 'expires_in': 3599}
2AccessTokenResponse
{
    "access_token": "g7giKAxrKUuyI9wAzUKa",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "hz_B0wFmfMVxgrpUKJYYtg",
        "aud": [
            "clientID"
        ],
        "exp": 1560834488,
        "iat": 1560831068,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "ziINiI7k9sjzGJzZ",
        "rt_hash": "JS9cWYxtqYT2afScLBe-Jw",
        "sub": "testuser"
    },
    "refresh_token": "dOXcftqpb028iAKauOW4Hq18hIx1WOAQ51W0gCpX",
    "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': 'G5X0iQG5XUNhmQ15', 'method': 'POST', 'authn_method': 'token_in_message_body'}
2request{'body': 'access_token=g7giKAxrKUuyI9wAzUKa'}
2request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo
2request_http_args{'headers': {'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