Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-ClientAuth-SecretPost-Dynamic
Test descriptionAccess token request with client_secret_post authentication
Timestamp2019-06-17T07:02:24Z

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': 'client_secret_post'}
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": "client_secret_post"
}
0http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition status_code:200
0RegistrationResponse
{
    "application_type": "web",
    "client_id": "FJnvvHSnLHPWatBhJRxY",
    "client_id_issued_at": 1560754942,
    "client_secret": "w3X07pZQwFKH8oz7zeIg",
    "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": "TeOwKkifKviZSWqzq0uh",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=FJnvvHSnLHPWatBhJRxY",
    "response_types": [
        "code",
        "token"
    ],
    "token_endpoint_auth_method": "client_secret_post"
}
0phase<--<-- 3 --- AsyncAuthn -->-->
0AuthorizationRequest
{
    "client_id": "FJnvvHSnLHPWatBhJRxY",
    "nonce": "d2vf0sR75p20mf7q",
    "redirect_uri": "https://op.certification.openid.net:61240/authz_cb",
    "response_type": "code token",
    "scope": "openid",
    "state": "iW7MNyCIVk7qGdnf"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=iW7MNyCIVk7qGdnf&nonce=d2vf0sR75p20mf7q&response_type=code+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61240%2Fauthz_cb&client_id=FJnvvHSnLHPWatBhJRxY
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=iW7MNyCIVk7qGdnf&nonce=d2vf0sR75p20mf7q&response_type=code+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61240%2Fauthz_cb&client_id=FJnvvHSnLHPWatBhJRxY
1http args{}
1responseURL with fragment
1responseaccess_token=VEoKk2wCc6gi4M7rBMkl&state=iW7MNyCIVk7qGdnf&expires_in=3599&token_type=bearer&code=rmVobDm82LetjO8V0YnbsARy5Mmkxf&scope=openid
1response{'access_token': 'VEoKk2wCc6gi4M7rBMkl', 'state': 'iW7MNyCIVk7qGdnf', 'expires_in': 3599, 'token_type': 'bearer', 'code': 'rmVobDm82LetjO8V0YnbsARy5Mmkxf', 'scope': 'openid'}
1AuthorizationResponse
{
    "access_token": "VEoKk2wCc6gi4M7rBMkl",
    "code": "rmVobDm82LetjO8V0YnbsARy5Mmkxf",
    "expires_in": 3599,
    "scope": "openid",
    "state": "iW7MNyCIVk7qGdnf",
    "token_type": "bearer"
}
1phase<--<-- 4 --- AccessToken -->-->
1requestop_args: {'state': 'iW7MNyCIVk7qGdnf', 'authn_method': 'client_secret_post'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61240/authz_cb'}
1do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61240/authz_cb', 'code': 'rmVobDm82LetjO8V0YnbsARy5Mmkxf', 'state': 'iW7MNyCIVk7qGdnf', 'grant_type': 'authorization_code', 'client_id': 'FJnvvHSnLHPWatBhJRxY'}, 'state': 'iW7MNyCIVk7qGdnf', 'authn_method': 'client_secret_post'}
1AccessTokenRequest
{
    "client_id": "FJnvvHSnLHPWatBhJRxY",
    "client_secret": "w3X07pZQwFKH8oz7zeIg",
    "code": "rmVobDm82LetjO8V0YnbsARy5Mmkxf",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61240/authz_cb",
    "state": "iW7MNyCIVk7qGdnf"
}
1request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
1request_http_args{'headers': {'Content-Type': 'application/x-www-form-urlencoded'}}
1requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61240%2Fauthz_cb&code=rmVobDm82LetjO8V0YnbsARy5Mmkxf&state=iW7MNyCIVk7qGdnf&client_id=FJnvvHSnLHPWatBhJRxY&client_secret=w3X07pZQwFKH8oz7zeIg
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
2response{'access_token': '44H7TKh2tolhfK09knqh', 'refresh_token': 'uAHl57OYsICNgJWFBhsX160XqhiNi2vc5RJ8WscT', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoiSkRTOTV2Y3dDdEY1MzJsRDlWNUNMQSIsIm5vbmNlIjoiZDJ2ZjBzUjc1cDIwbWY3cSIsImlhdCI6MTU2MDc1NDk0NCwiaXNzIjoiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My90ZXN0IiwiYXRfaGFzaCI6IjV2Rlppa3E2ZDJob3FEMmpLaUY1YVEiLCJzdWIiOiJ0ZXN0dXNlciIsImV4cCI6MTU2MDc1ODM2NCwiYXVkIjoiRkpudnZIU25MSFBXYXRCaEpSeFkifQ.eUx4Fm7gO0w03Ucv2cmKr4U-aWoWEhLL3R-AI2-QCGISYKjBUsOLDLzl4GU_d5s5bfb92jRWKZZh-Hos7RjDeffxgizPBdlyOVgmvl7E5NIiMkjNaSHb5YgY17492QNjM1mf47LLMDqAv-w-MBkngNlNkdgd_0m92k78AZyDPFbOF96NjA2GGZKmlO9_4hMNFtMhsUa-NC4KsHLxUJByb_1cCvZl9xYvioMAlQEPsJ7_AVHRuCS1nZ7MCjF17DZYfjLGaWMTIQ0hO3RAao-FUt-ZaBwdz_xrzga3fNOjTlSgJ23OOoZTq3rSpQsXfn1AwKeVF4zYuiC45R7hhbgfbQ', 'token_type': 'bearer', 'expires_in': 3599}
2AccessTokenResponse
{
    "access_token": "44H7TKh2tolhfK09knqh",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "5vFZikq6d2hoqD2jKiF5aQ",
        "aud": [
            "FJnvvHSnLHPWatBhJRxY"
        ],
        "exp": 1560758364,
        "iat": 1560754944,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "d2vf0sR75p20mf7q",
        "rt_hash": "JDS95vcwCtF532lD9V5CLA",
        "sub": "testuser"
    },
    "refresh_token": "uAHl57OYsICNgJWFBhsX160XqhiNi2vc5RJ8WscT",
    "scope": "openid",
    "token_type": "bearer"
}
2jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
2phase<--<-- 5 --- 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