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:14:54Z

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'}
1http response
url:https://isamfed.com:30443/test/.well-known/openid-configuration status_code:200
1ProviderConfigurationResponse
{
    "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"
}
1phase<--<-- 2 --- Registration -->-->
1register
kwargs:{'response_types': ['code id_token'], 'grant_types': ['authorization_code', 'implicit'], 'application_name': 'OIC test tool', 'application_type': 'web', 'redirect_uris': ['https://op.certification.openid.net:61365/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61365/logout'], 'url': 'https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition', 'jwks_uri': 'https://op.certification.openid.net:61365/static/jwks_61365.json', 'token_endpoint_auth_method': 'client_secret_post'}
1RegistrationRequest
{
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "jwks_uri": "https://op.certification.openid.net:61365/static/jwks_61365.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61365/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61365/authz_cb"
    ],
    "response_types": [
        "code id_token"
    ],
    "token_endpoint_auth_method": "client_secret_post"
}
1http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition status_code:200
1RegistrationResponse
{
    "application_type": "web",
    "client_id": "ncl6OwO104Kkk7CjP8ff",
    "client_id_issued_at": 1560755692,
    "client_secret": "47N7AlaTlgI8m0XapOzu",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "jwks_uri": "https://op.certification.openid.net:61365/static/jwks_61365.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61365/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61365/authz_cb"
    ],
    "registration_access_token": "MUvP74fpskqZ4bD1LRRa",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=ncl6OwO104Kkk7CjP8ff",
    "response_types": [
        "code",
        "id_token"
    ],
    "token_endpoint_auth_method": "client_secret_post"
}
1phase<--<-- 3 --- AsyncAuthn -->-->
1AuthorizationRequest
{
    "client_id": "ncl6OwO104Kkk7CjP8ff",
    "nonce": "Pm4RMFnXDsZi3j6G",
    "redirect_uri": "https://op.certification.openid.net:61365/authz_cb",
    "response_type": "code id_token",
    "scope": "openid",
    "state": "KzQB0XwnsTCZQ2Ff"
}
1redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=KzQB0XwnsTCZQ2Ff&nonce=Pm4RMFnXDsZi3j6G&response_type=code+id_token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61365%2Fauthz_cb&client_id=ncl6OwO104Kkk7CjP8ff
1redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=KzQB0XwnsTCZQ2Ff&nonce=Pm4RMFnXDsZi3j6G&response_type=code+id_token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61365%2Fauthz_cb&client_id=ncl6OwO104Kkk7CjP8ff
2http args{}
2responseURL with fragment
2responseid_token=eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJub25jZSI6IlBtNFJNRm5YRHNaaTNqNkciLCJpYXQiOjE1NjA3NTU2OTIsImlzcyI6Imh0dHBzOi8vaXNhbWZlZC5jb206MzA0NDMvdGVzdCIsInN1YiI6InRlc3R1c2VyIiwiZXhwIjoxNTYwNzU5MTE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gk0AsZyRJmEi_o1Z_fOeWfKbJhTquVEgoGYGrSE6VdUdo88oQn4WUat5D1arZmODUOVsZzX6O_30FA', 'state': 'KzQB0XwnsTCZQ2Ff', 'code': '72atBVYqxgDqidbO5m48OihcLBXKFp'}
2AuthorizationResponse
{
    "code": "72atBVYqxgDqidbO5m48OihcLBXKFp",
    "id_token": {
        "aud": [
            "ncl6OwO104Kkk7CjP8ff"
        ],
        "c_hash": "2N6YNAEkCOgNWu56Cnn9Ow",
        "exp": 1560759112,
        "iat": 1560755692,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "Pm4RMFnXDsZi3j6G",
        "sub": "testuser"
    },
    "state": "KzQB0XwnsTCZQ2Ff"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'KzQB0XwnsTCZQ2Ff', 'authn_method': 'client_secret_post'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61365/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61365/authz_cb', 'code': '72atBVYqxgDqidbO5m48OihcLBXKFp', 'state': 'KzQB0XwnsTCZQ2Ff', 'grant_type': 'authorization_code', 'client_id': 'ncl6OwO104Kkk7CjP8ff'}, 'state': 'KzQB0XwnsTCZQ2Ff', 'authn_method': 'client_secret_post'}
2AccessTokenRequest
{
    "client_id": "ncl6OwO104Kkk7CjP8ff",
    "client_secret": "47N7AlaTlgI8m0XapOzu",
    "code": "72atBVYqxgDqidbO5m48OihcLBXKFp",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61365/authz_cb",
    "state": "KzQB0XwnsTCZQ2Ff"
}
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%3A61365%2Fauthz_cb&code=72atBVYqxgDqidbO5m48OihcLBXKFp&state=KzQB0XwnsTCZQ2Ff&client_id=ncl6OwO104Kkk7CjP8ff&client_secret=47N7AlaTlgI8m0XapOzu
3http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
3response{'access_token': '4e18rdRx6Af1BgHU7ecd', 'refresh_token': 'os7f4DhATocipT3fXh6SoueeL1GpQPh9HLQRKrFx', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoiemt1UG5ZajJZUUp2WldBNzNFQzJHdyIsIm5vbmNlIjoiUG00Uk1GblhEc1ppM2o2RyIsImlhdCI6MTU2MDc1NTY5NCwiaXNzIjoiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My90ZXN0IiwiYXRfaGFzaCI6IlEyRll3d0dyb1ZVZkZva3ZaREdLOFEiLCJzdWIiOiJ0ZXN0dXNlciIsImV4cCI6MTU2MDc1OTExNCwiYXVkIjoibmNsNk93TzEwNEtrazdDalA4ZmYifQ.N682qUQUZwQ8PFk7Ybn8hxX2Ln3VLojswoX3l4WCt0nZGLgJcwDmsgxoQjJBizXv0H_Ckhy_EsEfGfJQY6f4fWSasEtROf3Oq-InMnsQ-0HF-91mjdmGWOHT0EpcNC9u1AGXEmmaitM29uiCix1aQz1y2_8T93ZiwNtunyU38LEi-iPg-u58rfeTMSUo8pvl7UaVNyTnvTi5To820s8Oqr28mZoqBGxLMlybZ4MoLkh7l0HqTWXTULS6C4z-1hCAXWNtqMCN16NrK2XR4t7sL3zO6CSKdvQFcoFst8ZuV09jmJM0-4Vp_xsR6C8Gn7-JfGsyJkYWNlcfpYteX1wirQ', 'token_type': 'bearer', 'expires_in': 3599}
3AccessTokenResponse
{
    "access_token": "4e18rdRx6Af1BgHU7ecd",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "Q2FYwwGroVUfFokvZDGK8Q",
        "aud": [
            "ncl6OwO104Kkk7CjP8ff"
        ],
        "exp": 1560759114,
        "iat": 1560755694,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "Pm4RMFnXDsZi3j6G",
        "rt_hash": "zkuPnYj2YQJvZWA73EC2Gw",
        "sub": "testuser"
    },
    "refresh_token": "os7f4DhATocipT3fXh6SoueeL1GpQPh9HLQRKrFx",
    "scope": "openid",
    "token_type": "bearer"
}
3jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
3phase<--<-- 5 --- 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