Test Info

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

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_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": "oTPNoXrhGWuYqTKt",
    "redirect_uri": "https://op.certification.openid.net:61577/authz_cb",
    "response_type": "code id_token",
    "scope": "openid",
    "state": "mBA3t997REjKeVg2"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=mBA3t997REjKeVg2&nonce=oTPNoXrhGWuYqTKt&response_type=code+id_token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61577%2Fauthz_cb&client_id=clientID
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=mBA3t997REjKeVg2&nonce=oTPNoXrhGWuYqTKt&response_type=code+id_token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61577%2Fauthz_cb&client_id=clientID
1http args{}
2responseURL with fragment
2responseid_token=eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJub25jZSI6Im9UUE5vWHJoR1d1WXFUS3QiLCJpYXQiOjE1NjA3NTg0NjEsImlzcyI6Imh0dHBzOi8vaXNhbWZlZC5jb206MzA0NDMvdGVzdCIsInN1YiI6InRlc3R1c2VyIiwiZXhwIjoxNTYwNzYxODgxLCJjX2hhc2gi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oDnzx5Mo95Bk3rmT8UwrQNgpuzCF2XJCb5pYRJDRUDigMaH3pVCNVKc-uw', 'state': 'mBA3t997REjKeVg2', 'code': '7Gk5gPd7bSg05VaQtO886a5rwAz1Dd'}
2AuthorizationResponse
{
    "code": "7Gk5gPd7bSg05VaQtO886a5rwAz1Dd",
    "id_token": {
        "aud": [
            "clientID"
        ],
        "c_hash": "WISQJ0d7A3W2DoktBOhNyA",
        "exp": 1560761881,
        "iat": 1560758461,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "oTPNoXrhGWuYqTKt",
        "sub": "testuser"
    },
    "state": "mBA3t997REjKeVg2"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'mBA3t997REjKeVg2'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61577/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61577/authz_cb', 'code': '7Gk5gPd7bSg05VaQtO886a5rwAz1Dd', 'state': 'mBA3t997REjKeVg2', 'grant_type': 'authorization_code', 'client_id': 'clientID'}, 'state': 'mBA3t997REjKeVg2', 'authn_method': 'client_secret_basic'}
2AccessTokenRequest
{
    "code": "7Gk5gPd7bSg05VaQtO886a5rwAz1Dd",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61577/authz_cb",
    "state": "mBA3t997REjKeVg2"
}
2request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
2request_http_args{'headers': {'Authorization': 'Basic Y2xpZW50SUQ6Y2xpZW50U2VjcmV0', 'Content-Type': 'application/x-www-form-urlencoded'}}
2requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61577%2Fauthz_cb&code=7Gk5gPd7bSg05VaQtO886a5rwAz1Dd&state=mBA3t997REjKeVg2
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
2response{'access_token': 'zwJhkPuxgnm7glUpGmhO', 'refresh_token': 'ZoxoeScO6JeZ6dXQMfpumYtK2gUGy2JT12j4mQfW', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoibFR3NzF1TTYtckxHbVdCQjFtdnFzZyIsIm5vbmNlIjoib1RQTm9YcmhHV3VZcVRLdCIsImlhdCI6MTU2MDc1ODQ2MiwiaXNzIjoiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My90ZXN0IiwiYXRfaGFzaCI6IkZVWkQ3MGREMkEwZnRHeGE1WFBaUEEiLCJzdWIiOiJ0ZXN0dXNlciIsImV4cCI6MTU2MDc2MTg4MiwiYXVkIjoiY2xpZW50SUQifQ.v8hNoKF3byg8dtMjdGa7tDebPWaw47QnO8bnYFlApFAA121e4NepYrnj-T7J43t77aOw9rPMG_xVWLx3jKT1QTKq6Jh0sRSr310M0CsiExVarWkEN23UP_6OeVh7a6fiJNLaSqA15-sagYhaViBjPMPR4vJkQWLVSnqMtJ7kVEfJJoRC2MLh201TyAF6p5O0HEr5XsiHt8G2DBt6r_espdSAfXFc-Ju6WEPdet7876xshdqpUCxImrXl11kmxYXujnCXZKgwxEM861XFGgA9hHFrb2-Vvs8cSr6abeCls7J-vVQ0Iv9sezaEZ8-CP9GiuL-CENNRHEsDUXvd32v_0Q', 'token_type': 'bearer', 'expires_in': 3599}
2AccessTokenResponse
{
    "access_token": "zwJhkPuxgnm7glUpGmhO",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "FUZD70dD2A0ftGxa5XPZPA",
        "aud": [
            "clientID"
        ],
        "exp": 1560761882,
        "iat": 1560758462,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "oTPNoXrhGWuYqTKt",
        "rt_hash": "lTw71uM6-rLGmWBB1mvqsg",
        "sub": "testuser"
    },
    "refresh_token": "ZoxoeScO6JeZ6dXQMfpumYtK2gUGy2JT12j4mQfW",
    "scope": "openid",
    "token_type": "bearer"
}
2jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
2phase<--<-- 5 --- UserInfo -->-->
2do_user_info_request
kwargs:{'state': 'mBA3t997REjKeVg2', 'method': 'POST', 'authn_method': 'token_in_message_body'}
2request{'body': 'access_token=zwJhkPuxgnm7glUpGmhO'}
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