Test Info

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

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": "Swlk09cn4TEVVkq8",
    "redirect_uri": "https://op.certification.openid.net:61578/authz_cb",
    "response_type": "code id_token token",
    "scope": "openid",
    "state": "7cZpyHhNVZKd6kQp"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=7cZpyHhNVZKd6kQp&nonce=Swlk09cn4TEVVkq8&response_type=code+id_token+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61578%2Fauthz_cb&client_id=clientID
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=7cZpyHhNVZKd6kQp&nonce=Swlk09cn4TEVVkq8&response_type=code+id_token+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61578%2Fauthz_cb&client_id=clientID
1http args{}
1responseURL with fragment
1responseaccess_token=qRSeFt50Xo6ROGnotTXH&state=7cZpyHhNVZKd6kQp&expires_in=3599&token_type=bearer&code=9sO4AbwsFe9xfRq12d4nKgl8ix2gtP&scope=openid&id_token=eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJub25jZSI6IlN3bGswOWNuNFRFVlZrcTgiLCJpYXQiOjE1NjA3NTk3NTUsImlzcyI6Imh0dHBzOi8vaXNhbWZlZC5jb206MzA0NDMvdGVzdCIsImF0X2hhc2giOiJqSWRfNUZfSXZJRHdhaHVBYlMtcXJ3Iiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE1NjA3NjMxNzUsImNfaGFzaCI6IkNUdWd5cm5TMFpmejFBZ0RYejdhR3ciLCJhdWQiOiJjbGllbnRJRCJ9.lJaBNMapk0Nug__w6t3VV2n68KL8lsuUt417NhdRnLFKI6qFj2UEEbrhSy6EFOa85zg7yrhPxtqdqdHdk549OUmg0F-pboTX-0A_yv4A_g4qFGEHoLtyLXyeqjQauu3aDHlLXdP2ne6I0xFPUOgdyx-N6Z16u0KToMrFVijYx-Ct0rbktIhxULHsSLDWTkYpNlwwvY0fdraIf26MrF2lr26SoyQJZvs-HBEY2-kOSwgN31RxJ3ygthcKBA9EQ5MrGeA4NQzeG7oH1ID_I1ff1mVkIyc-0NXmyVAS5ffz95NiUqpapOwdwiVqGt92oUbQIltKoefzMS_XSSKWueYeRA
1response{'access_token': 'qRSeFt50Xo6ROGnotTXH', 'state': '7cZpyHhNVZKd6kQp', 'expires_in': 3599, 'token_type': 'bearer', 'code': '9sO4AbwsFe9xfRq12d4nKgl8ix2gtP', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJub25jZSI6IlN3bGswOWNuNFRFVlZrcTgiLCJpYXQiOjE1NjA3NTk3NTUsImlzcyI6Imh0dHBzOi8vaXNhbWZlZC5jb206MzA0NDMvdGVzdCIsImF0X2hhc2giOiJqSWRfNUZfSXZJRHdhaHVBYlMtcXJ3Iiwic3ViIjoidGVzdHVzZXIiLCJleHAiOjE1NjA3NjMxNzUsImNfaGFzaCI6IkNUdWd5cm5TMFpmejFBZ0RYejdhR3ciLCJhdWQiOiJjbGllbnRJRCJ9.lJaBNMapk0Nug__w6t3VV2n68KL8lsuUt417NhdRnLFKI6qFj2UEEbrhSy6EFOa85zg7yrhPxtqdqdHdk549OUmg0F-pboTX-0A_yv4A_g4qFGEHoLtyLXyeqjQauu3aDHlLXdP2ne6I0xFPUOgdyx-N6Z16u0KToMrFVijYx-Ct0rbktIhxULHsSLDWTkYpNlwwvY0fdraIf26MrF2lr26SoyQJZvs-HBEY2-kOSwgN31RxJ3ygthcKBA9EQ5MrGeA4NQzeG7oH1ID_I1ff1mVkIyc-0NXmyVAS5ffz95NiUqpapOwdwiVqGt92oUbQIltKoefzMS_XSSKWueYeRA'}
1AuthorizationResponse
{
    "access_token": "qRSeFt50Xo6ROGnotTXH",
    "code": "9sO4AbwsFe9xfRq12d4nKgl8ix2gtP",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "jId_5F_IvIDwahuAbS-qrw",
        "aud": [
            "clientID"
        ],
        "c_hash": "CTugyrnS0Zfz1AgDXz7aGw",
        "exp": 1560763175,
        "iat": 1560759755,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "Swlk09cn4TEVVkq8",
        "sub": "testuser"
    },
    "scope": "openid",
    "state": "7cZpyHhNVZKd6kQp",
    "token_type": "bearer"
}
1phase<--<-- 4 --- AccessToken -->-->
1requestop_args: {'state': '7cZpyHhNVZKd6kQp'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61578/authz_cb'}
1do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61578/authz_cb', 'code': '9sO4AbwsFe9xfRq12d4nKgl8ix2gtP', 'state': '7cZpyHhNVZKd6kQp', 'grant_type': 'authorization_code', 'client_id': 'clientID'}, 'state': '7cZpyHhNVZKd6kQp', 'authn_method': 'client_secret_basic'}
1AccessTokenRequest
{
    "code": "9sO4AbwsFe9xfRq12d4nKgl8ix2gtP",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61578/authz_cb",
    "state": "7cZpyHhNVZKd6kQp"
}
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%3A61578%2Fauthz_cb&code=9sO4AbwsFe9xfRq12d4nKgl8ix2gtP&state=7cZpyHhNVZKd6kQp
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
2response{'access_token': '8OTfO8NYFtp6iKNSnxgu', 'refresh_token': '6uwtkA676OqQIoyB0AZ97P0HZ9rrGwhzPuYZB1I0', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoieGpwTEEwQU9IX2hOb2RLNXZMaGZyUSIsIm5vbmNlIjoiU3dsazA5Y240VEVWVmtxOCIsImlhdCI6MTU2MDc1OTc1NywiaXNzIjoiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My90ZXN0IiwiYXRfaGFzaCI6Im0xbVowRmIyV1VaUEFWMHBCTEphSUEiLCJzdWIiOiJ0ZXN0dXNlciIsImV4cCI6MTU2MDc2MzE3NywiYXVkIjoiY2xpZW50SUQifQ.wvbOh2-eEh_1eLZETAB0GU7UCXC2RhNImqK33Tm5sKDpoI6vJIGz00Vo3kRcZ9Ywnqm2isGzgODUHo4z5hR_9M1zQHSVDpAS6mVuvRzi28QFcgcEwv3B-lTQ6dlGrVM0HbnJ5yXIkAIfD4sy75qCIP6Xev_bQoTBeUE53WjuHcpojgDlmif5kFazv-_paJuBzmu83xNnLH-5fXyZD-DEyGQzvLRS56AThE1bbXSqpK8iZJsEv6J1TRz-qulAPbmo6xeh_wzQbPj667fOxFh0whPv_i3zC081L13EM4UKpohHV57hoDJ07BylC2D6wcQSrq4Z7TeFVjZvcxU47lVSpg', 'token_type': 'bearer', 'expires_in': 3599}
2AccessTokenResponse
{
    "access_token": "8OTfO8NYFtp6iKNSnxgu",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "m1mZ0Fb2WUZPAV0pBLJaIA",
        "aud": [
            "clientID"
        ],
        "exp": 1560763177,
        "iat": 1560759757,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "Swlk09cn4TEVVkq8",
        "rt_hash": "xjpLA0AOH_hNodK5vLhfrQ",
        "sub": "testuser"
    },
    "refresh_token": "6uwtkA676OqQIoyB0AZ97P0HZ9rrGwhzPuYZB1I0",
    "scope": "openid",
    "token_type": "bearer"
}
2jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
2phase<--<-- 5 --- UserInfo -->-->
2do_user_info_request
kwargs:{'state': '7cZpyHhNVZKd6kQp', 'method': 'POST', 'authn_method': 'token_in_message_body'}
2request{'body': 'access_token=8OTfO8NYFtp6iKNSnxgu'}
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