Test Info

Test descriptionUserInfo Endpoint access with POST and bearer header
Profile[]
Test IDOP-UserInfo-Header
Timestamp2017-12-18T20:59:42Z
Issuerhttps://oidctest.idautoengineering.net/idp

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

0.0phase<--<-- 0 --- Webfinger -->-->
0.0not expected to doWebFinger
0.0phase<--<-- 1 --- Discovery -->-->
0.0provider_config
kwargs:{'issuer': 'https://oidctest.idautoengineering.net/idp'}
0.041http response
url:https://oidctest.idautoengineering.net/idp/.well-known/openid-configuration status_code:200
0.042ProviderConfigurationResponse
{
    "authorization_endpoint": "https://oidctest.idautoengineering.net/idp/profile/oidc/auth",
    "claim_types_supported": [
        "normal"
    ],
    "claims_parameter_supported": false,
    "claims_supported": [
        "sub",
        "name",
        "given_name",
        "family_name",
        "email"
    ],
    "display_values_supported": [
        "page"
    ],
    "grant_types_supported": [
        "authorization_code"
    ],
    "id_token_signing_alg_values_supported": [
        "RS256"
    ],
    "issuer": "https://oidctest.idautoengineering.net/idp",
    "jwks_uri": "https://oidctest.idautoengineering.net/idp/profile/oidc/jwks",
    "request_parameter_supported": false,
    "request_uri_parameter_supported": true,
    "require_request_uri_registration": true,
    "response_modes_supported": [
        "query"
    ],
    "response_types_supported": [
        "code",
        "token",
        "id_token"
    ],
    "scopes_supported": [
        "openid"
    ],
    "subject_types_supported": [
        "public"
    ],
    "token_endpoint": "https://oidctest.idautoengineering.net/idp/profile/oidc/token",
    "token_endpoint_auth_methods_supported": [
        "client_secret_post",
        "client_secret_basic"
    ],
    "userinfo_endpoint": "https://oidctest.idautoengineering.net/idp/profile/oidc/userinfo",
    "userinfo_signing_alg_values_supported": [
        "RS256"
    ],
    "version": "3.0"
}
0.042phase<--<-- 2 --- Registration -->-->
0.042not expected to doDynamic registration
0.042phase<--<-- 3 --- AsyncAuthn -->-->
0.043AuthorizationRequest
{
    "client_id": "3000badf0c55d2cae7c22b3d63e3f667",
    "nonce": "gOycltAeLp9R6nd0",
    "redirect_uri": "https://op.certification.openid.net:60992/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "92TcXpklxceLGwVd"
}
0.043redirect urlhttps://oidctest.idautoengineering.net/idp/profile/oidc/auth?scope=openid&nonce=gOycltAeLp9R6nd0&state=92TcXpklxceLGwVd&response_type=code&client_id=3000badf0c55d2cae7c22b3d63e3f667&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60992%2Fauthz_cb
0.043redirecthttps://oidctest.idautoengineering.net/idp/profile/oidc/auth?scope=openid&nonce=gOycltAeLp9R6nd0&state=92TcXpklxceLGwVd&response_type=code&client_id=3000badf0c55d2cae7c22b3d63e3f667&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60992%2Fauthz_cb
0.313response{'code': 'muikoVDWT2guxu9Dcq7XMmWuuuxwBeKqU-tGGnAZUnsjgEjgJn', 'state': '92TcXpklxceLGwVd'}
0.314response{'code': 'muikoVDWT2guxu9Dcq7XMmWuuuxwBeKqU-tGGnAZUnsjgEjgJn', 'state': '92TcXpklxceLGwVd'}
0.314AuthorizationResponse
{
    "code": "muikoVDWT2guxu9Dcq7XMmWuuuxwBeKqU-tGGnAZUnsjgEjgJn",
    "state": "92TcXpklxceLGwVd"
}
0.314phase<--<-- 4 --- AccessToken -->-->
0.314requestop_args: {'state': '92TcXpklxceLGwVd'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:60992/authz_cb'}
0.314do_access_token_request
kwargs:{'request_args': {'code': 'muikoVDWT2guxu9Dcq7XMmWuuuxwBeKqU-tGGnAZUnsjgEjgJn', 'state': '92TcXpklxceLGwVd', 'grant_type': 'authorization_code', 'client_id': '3000badf0c55d2cae7c22b3d63e3f667', 'redirect_uri': 'https://op.certification.openid.net:60992/authz_cb'}, 'state': '92TcXpklxceLGwVd'}
0.314AccessTokenRequest
{
    "client_id": "3000badf0c55d2cae7c22b3d63e3f667",
    "code": "muikoVDWT2guxu9Dcq7XMmWuuuxwBeKqU-tGGnAZUnsjgEjgJn",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:60992/authz_cb",
    "state": "92TcXpklxceLGwVd"
}
0.314request_urlhttps://oidctest.idautoengineering.net/idp/profile/oidc/token
0.314request_http_args{'headers': {'Authorization': 'Basic MzAwMGJhZGYwYzU1ZDJjYWU3YzIyYjNkNjNlM2Y2Njc6ODY5N2E4OTlhYzFjNzYwODAyNmM4ZDEzN2E1YzMzYTAwM2RlMDA1MDc2MzBmMmQ2OGM5NTNlMTNkNzVlNjFiYg==', 'Content-Type': 'application/x-www-form-urlencoded'}}
0.314requestclient_id=3000badf0c55d2cae7c22b3d63e3f667&state=92TcXpklxceLGwVd&code=muikoVDWT2guxu9Dcq7XMmWuuuxwBeKqU-tGGnAZUnsjgEjgJn&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60992%2Fauthz_cb
0.347http response
url:https://oidctest.idautoengineering.net/idp/profile/oidc/token status_code:200
0.348response{'refresh_token': 'dCw_dkNmG8gMM9tA86~HtgB~-juu8Cnaru.cE3rCOT+Yq2e583', 'expires_in': 32399, 'scope': 'openid', 'access_token': '9Sjx~rkf-8UjP3JX9E8ORwiwkiQCDSvQszSU2.4mxm8/ShKUVh', 'id_token': 'eyJraWQiOiI2NTJlNjk1N2UxNzNmYzYxOTYxN2ZhMjNjMzZjYmFjNTRhNWZhNzhlNjBiNzA2Mjg5NmI2ZDgzNTdkNDVhOWYxIiwiYWxnIjoiUlMyNTYifQ.eyJpYXQiOjE1MTM2MzA3ODIsImV4cCI6MTUxMzYzMDg0MiwiaXNzIjoiaHR0cHM6Ly9vaWRjdGVzdC5pZGF1dG9lbmdpbmVlcmluZy5uZXQvaWRwIiwiYXVkIjoiMzAwMGJhZGYwYzU1ZDJjYWU3YzIyYjNkNjNlM2Y2NjciLCJzdWIiOiIyNjIwMjdhMC1hZjc3LTExZTctODc2ZC0wMjc0MGM1NDljY2EiLCJhdXRoX3RpbWUiOjE1MTM2MzAzNDgsIm5vbmNlIjoiZ095Y2x0QWVMcDlSNm5kMCIsImF6cCI6IjMwMDBiYWRmMGM1NWQyY2FlN2MyMmIzZDYzZTNmNjY3IiwibmFtZSI6IlN5c3RlbSBBZG1pbiIsImdpdmVuX25hbWUiOiJTeXN0ZW0iLCJmYW1pbHlfbmFtZSI6IkFkbWluIiwiZW1haWwiOiJqYmVsbGFzc2FpQGlkZW50aXR5YXV0b21hdGlvbi5jb20iLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXRfaGFzaCI6IjBWazk0NGtNbmd5dUlZN2dsX1NGRlE9PSJ9.fZK0zDuoyMOjNWJY91g3ihNwgAgO4f3ne_cOvfe4NRI9vISHeigQlAGWqs7frWh-9n2QB_9U0Xu0rCmubxuzBzLoOrxdcHzsrgUPHd2AmHeE3e34M-ozgSJzr4pwuQcBxAjTnZed8jG0up00QRL7i6c8WQKIdr-etkLgnAWlDG5TZgUlclQMw_7hCEfmb1_l0paLHnxYY9dBAMbzUNT7-6MoLXcStqmHXKBJBx-CdRmw0uxS4hdOtkJucTjA27nbVjj04HVKgLw61IUs_shlv8M6rC2PJnoy6xiPT8auok4fIkzLudVr2k2lbI8xqnNMKDbrylr8qZPHVAYZZFY1UA', 'token_type': 'Bearer'}
0.374AccessTokenResponse
{
    "access_token": "9Sjx~rkf-8UjP3JX9E8ORwiwkiQCDSvQszSU2.4mxm8/ShKUVh",
    "expires_in": 32399,
    "id_token": {
        "at_hash": "0Vk944kMngyuIY7gl_SFFQ==",
        "aud": [
            "3000badf0c55d2cae7c22b3d63e3f667"
        ],
        "auth_time": 1513630348,
        "azp": "3000badf0c55d2cae7c22b3d63e3f667",
        "email": "jbellassai@identityautomation.com",
        "email_verified": true,
        "exp": 1513630842,
        "family_name": "Admin",
        "given_name": "System",
        "iat": 1513630782,
        "iss": "https://oidctest.idautoengineering.net/idp",
        "name": "System Admin",
        "nonce": "gOycltAeLp9R6nd0",
        "sub": "262027a0-af77-11e7-876d-02740c549cca"
    },
    "refresh_token": "dCw_dkNmG8gMM9tA86~HtgB~-juu8Cnaru.cE3rCOT+Yq2e583",
    "scope": "openid",
    "token_type": "Bearer"
}
0.374phase<--<-- 5 --- UserInfo -->-->
0.375do_user_info_request
kwargs:{'method': 'POST', 'behavior': 'use_authorization_header', 'state': '92TcXpklxceLGwVd'}
0.375request{'body': ''}
0.375request_urlhttps://oidctest.idautoengineering.net/idp/profile/oidc/userinfo
0.375request_http_args{'headers': {'Authorization': 'Bearer 9Sjx~rkf-8UjP3JX9E8ORwiwkiQCDSvQszSU2.4mxm8/ShKUVh', 'Content-Type': 'application/x-www-form-urlencoded'}}
0.405http response
url:https://oidctest.idautoengineering.net/idp/profile/oidc/userinfo status_code:200
0.407OpenIDSchema
{
    "email": "jbellassai@identityautomation.com",
    "email_verified": true,
    "family_name": "Admin",
    "given_name": "System",
    "name": "System Admin",
    "sub": "262027a0-af77-11e7-876d-02740c549cca"
}
0.407OpenIDSchema
{
    "email": "jbellassai@identityautomation.com",
    "email_verified": true,
    "family_name": "Admin",
    "given_name": "System",
    "name": "System Admin",
    "sub": "262027a0-af77-11e7-876d-02740c549cca"
}
0.407phase<--<-- 6 --- Done -->-->
0.407end
0.408assertionVerifyResponse
0.408conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
0.408conditionDone: status=OK

Result

PASSED