Test Info

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

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 -->-->
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:61240/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61240/logout'], 'url': 'https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition', 'jwks_uri': 'https://op.certification.openid.net:61240/static/jwks_61240.json', 'token_endpoint_auth_method': 'private_key_jwt'}
0RegistrationRequest
{
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "jwks_uri": "https://op.certification.openid.net:61240/static/jwks_61240.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61240/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61240/authz_cb"
    ],
    "response_types": [
        "code token"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
1http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition status_code:200
1RegistrationResponse
{
    "application_type": "web",
    "client_id": "aEUGSBDh1kLhayXfjDQp",
    "client_id_issued_at": 1560754946,
    "client_secret": "2KLIxOjwuez2xJD52n6L",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "jwks_uri": "https://op.certification.openid.net:61240/static/jwks_61240.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61240/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61240/authz_cb"
    ],
    "registration_access_token": "5ffRh6YAVz40PRPLeT7l",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=aEUGSBDh1kLhayXfjDQp",
    "response_types": [
        "code",
        "token"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
1phase<--<-- 3 --- AsyncAuthn -->-->
1AuthorizationRequest
{
    "client_id": "aEUGSBDh1kLhayXfjDQp",
    "nonce": "7cdSDwymSn7xVCKU",
    "redirect_uri": "https://op.certification.openid.net:61240/authz_cb",
    "response_type": "code token",
    "scope": "openid",
    "state": "YayYHO1ITxNlnFaI"
}
1redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=YayYHO1ITxNlnFaI&nonce=7cdSDwymSn7xVCKU&response_type=code+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61240%2Fauthz_cb&client_id=aEUGSBDh1kLhayXfjDQp
1redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=YayYHO1ITxNlnFaI&nonce=7cdSDwymSn7xVCKU&response_type=code+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61240%2Fauthz_cb&client_id=aEUGSBDh1kLhayXfjDQp
2http args{}
2responseURL with fragment
2responseaccess_token=dXNmnQnilkR0LzLgSvZQ&state=YayYHO1ITxNlnFaI&expires_in=3599&token_type=bearer&code=2CX6ZmCoHLTYwjuCzxuWBEIn9pqOfM&scope=openid
2response{'access_token': 'dXNmnQnilkR0LzLgSvZQ', 'state': 'YayYHO1ITxNlnFaI', 'expires_in': 3599, 'token_type': 'bearer', 'code': '2CX6ZmCoHLTYwjuCzxuWBEIn9pqOfM', 'scope': 'openid'}
2AuthorizationResponse
{
    "access_token": "dXNmnQnilkR0LzLgSvZQ",
    "code": "2CX6ZmCoHLTYwjuCzxuWBEIn9pqOfM",
    "expires_in": 3599,
    "scope": "openid",
    "state": "YayYHO1ITxNlnFaI",
    "token_type": "bearer"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'YayYHO1ITxNlnFaI'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61240/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61240/authz_cb', 'code': '2CX6ZmCoHLTYwjuCzxuWBEIn9pqOfM', 'state': 'YayYHO1ITxNlnFaI', 'grant_type': 'authorization_code', 'client_id': 'aEUGSBDh1kLhayXfjDQp'}, 'state': 'YayYHO1ITxNlnFaI', 'authn_method': 'private_key_jwt'}
2AccessTokenRequest
{
    "client_assertion": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiYUVVR1NCRGgxa0xoYXlYZmpEUXAiLCAic3ViIjogImFFVUdTQkRoMWtMaGF5WGZqRFFwIiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJLS292VEsxSXNxUTB5bkVsNDJyczBDRjlmWUtJV215YSIsICJleHAiOiAxNTYwNzU1NTQ3LCAiaWF0IjogMTU2MDc1NDk0N30.bzA8jcagBAFtQDhaks3VPwB9SEENX8moDCR1goiQtqByksYJW0GsmVt_YbUxccwpikwxfusGBFWoJVQP0Pm4A5h_Nc6bxAny6Dv0-MHYlaS6dRN5QzhthlaRXiwdeXZu989iaWQ0UEAYeYH2g4qNjPsN4oHlc04-2o72ETISM87m9zaR9G7J8CyUfoNWYfUy_4P7kPkj4uAHU5VidUXD56AL7s2JGrQIID3hkmtnR7gzZ2lr5tuwX0DFZ1ul7D6W04VvtLwMHNYGFN-Oz86S6yFENAgk5XVEZyODNEIg9A_Jr3iWVLklPMiREUJa6A5nISD2T9TsWLJ23je5BtrgEQ",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "code": "2CX6ZmCoHLTYwjuCzxuWBEIn9pqOfM",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61240/authz_cb",
    "state": "YayYHO1ITxNlnFaI"
}
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%3A61240%2Fauthz_cb&code=2CX6ZmCoHLTYwjuCzxuWBEIn9pqOfM&state=YayYHO1ITxNlnFaI&client_assertion=eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiYUVVR1NCRGgxa0xoYXlYZmpEUXAiLCAic3ViIjogImFFVUdTQkRoMWtMaGF5WGZqRFFwIiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJLS292VEsxSXNxUTB5bkVsNDJyczBDRjlmWUtJV215YSIsICJleHAiOiAxNTYwNzU1NTQ3LCAiaWF0IjogMTU2MDc1NDk0N30.bzA8jcagBAFtQDhaks3VPwB9SEENX8moDCR1goiQtqByksYJW0GsmVt_YbUxccwpikwxfusGBFWoJVQP0Pm4A5h_Nc6bxAny6Dv0-MHYlaS6dRN5QzhthlaRXiwdeXZu989iaWQ0UEAYeYH2g4qNjPsN4oHlc04-2o72ETISM87m9zaR9G7J8CyUfoNWYfUy_4P7kPkj4uAHU5VidUXD56AL7s2JGrQIID3hkmtnR7gzZ2lr5tuwX0DFZ1ul7D6W04VvtLwMHNYGFN-Oz86S6yFENAgk5XVEZyODNEIg9A_Jr3iWVLklPMiREUJa6A5nISD2T9TsWLJ23je5BtrgEQ&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer
3http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
3response{'access_token': 'O67RQ0Bt2vUa83TBEpmb', 'refresh_token': 'F8STtZV9xG3mhtnRjTs6JyovNWzatqWNZahabkzy', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoiYzdtNWloWjRnQk5jZDljSWxSUFQ3USIsIm5vbmNlIjoiN2NkU0R3eW1Tbjd4VkNLVSIsImlhdCI6MTU2MDc1NDk0OCwiaXNzIjoiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My90ZXN0IiwiYXRfaGFzaCI6IjZCV1AwZUhnN2RlaEdOeFpvMGdpaEEiLCJzdWIiOiJ0ZXN0dXNlciIsImV4cCI6MTU2MDc1ODM2OCwiYXVkIjoiYUVVR1NCRGgxa0xoYXlYZmpEUXAifQ.WuBkEAef0ZFenm7eOKHBJb7hERdDV1MpH3_-8KzKf45i_zC9Hunndl-6pq885OL9OO_D824ES_6eolcJQpsQn9wHTvhq2fLj8TN5iVduJxq_DR1r9FNycgQ6LXi21A7CZH__92p6ph4VSepS-TVCzu6QkOv-wnXbuQyABstroJqFbwA5Zs0mrEdXXthkXW3tgjrPlCLZq_4fLx_YOxKAqpi0AqF1qY7091dAQvLadgo0u7ZD4wcQChb0GZ-QZlZKPVzI7bhw6xWEGgot9oTWAhFNUEhyonQEPJD1Yx0JMABRNAJAKea5iIkXg1O099RWfUnNovdZxoL4OrKejUV6Zg', 'token_type': 'bearer', 'expires_in': 3599}
3AccessTokenResponse
{
    "access_token": "O67RQ0Bt2vUa83TBEpmb",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "6BWP0eHg7dehGNxZo0gihA",
        "aud": [
            "aEUGSBDh1kLhayXfjDQp"
        ],
        "exp": 1560758368,
        "iat": 1560754948,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "7cdSDwymSn7xVCKU",
        "rt_hash": "c7m5ihZ4gBNcd9cIlRPT7Q",
        "sub": "testuser"
    },
    "refresh_token": "F8STtZV9xG3mhtnRjTs6JyovNWzatqWNZahabkzy",
    "scope": "openid",
    "token_type": "bearer"
}
3jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
3phase<--<-- 5 --- UserInfo -->-->
3do_user_info_request
kwargs:{'state': 'YayYHO1ITxNlnFaI', 'method': 'POST', 'authn_method': 'token_in_message_body'}
3request{'body': 'access_token=O67RQ0Bt2vUa83TBEpmb'}
3request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo
3request_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