Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-ClientAuth-Basic-Dynamic
Test descriptionAccess token request with client_secret_basic authentication
Timestamp2019-06-17T07:14:50Z

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 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_basic'}
0RegistrationRequest
{
    "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_basic"
}
0http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition status_code:200
0RegistrationResponse
{
    "application_type": "web",
    "client_id": "7zkxLibTljPNNqKRCIND",
    "client_id_issued_at": 1560755688,
    "client_secret": "bVtRNi4QbRpv3oKXW510",
    "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": "jJ3WUUEkRR6eFmXwb5LI",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=7zkxLibTljPNNqKRCIND",
    "response_types": [
        "code",
        "id_token"
    ],
    "token_endpoint_auth_method": "client_secret_basic"
}
0phase<--<-- 3 --- AsyncAuthn -->-->
0AuthorizationRequest
{
    "client_id": "7zkxLibTljPNNqKRCIND",
    "nonce": "Z3EdYdndFLW8DSR1",
    "redirect_uri": "https://op.certification.openid.net:61365/authz_cb",
    "response_type": "code id_token",
    "scope": "openid",
    "state": "cjYuP58DEu49ixBA"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=cjYuP58DEu49ixBA&nonce=Z3EdYdndFLW8DSR1&response_type=code+id_token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61365%2Fauthz_cb&client_id=7zkxLibTljPNNqKRCIND
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=cjYuP58DEu49ixBA&nonce=Z3EdYdndFLW8DSR1&response_type=code+id_token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61365%2Fauthz_cb&client_id=7zkxLibTljPNNqKRCIND
1http args{}
2responseURL with fragment
2responseid_token=eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJub25jZSI6IlozRWRZZG5kRkxXOERTUjEiLCJpYXQiOjE1NjA3NTU2ODksImlzcyI6Imh0dHBzOi8vaXNhbWZlZC5jb206MzA0NDMvdGVzdCIsInN1YiI6InRlc3R1c2VyIiwiZXhwIjoxNTYwNzU5MTA5LCJjX2hhc2giOiJ6dDNBYm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-GmzUDFatbHl6USi2_y_Ly_d-W0jQ66q5xa1A7UHOpXCsaBSGFfcE6F3w', 'state': 'cjYuP58DEu49ixBA', 'code': 'KfNePlXgpIVmoZU5NaGpDkMcSm6XkC'}
2AuthorizationResponse
{
    "code": "KfNePlXgpIVmoZU5NaGpDkMcSm6XkC",
    "id_token": {
        "aud": [
            "7zkxLibTljPNNqKRCIND"
        ],
        "c_hash": "zt3AbgrCWMJ1GTPHgbdhmg",
        "exp": 1560759109,
        "iat": 1560755689,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "Z3EdYdndFLW8DSR1",
        "sub": "testuser"
    },
    "state": "cjYuP58DEu49ixBA"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'cjYuP58DEu49ixBA', 'authn_method': 'client_secret_basic'}, 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': 'KfNePlXgpIVmoZU5NaGpDkMcSm6XkC', 'state': 'cjYuP58DEu49ixBA', 'grant_type': 'authorization_code', 'client_id': '7zkxLibTljPNNqKRCIND'}, 'state': 'cjYuP58DEu49ixBA', 'authn_method': 'client_secret_basic'}
2AccessTokenRequest
{
    "code": "KfNePlXgpIVmoZU5NaGpDkMcSm6XkC",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61365/authz_cb",
    "state": "cjYuP58DEu49ixBA"
}
2request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
2request_http_args{'headers': {'Authorization': 'Basic N3preExpYlRsalBOTnFLUkNJTkQ6YlZ0Uk5pNFFiUnB2M29LWFc1MTA=', 'Content-Type': 'application/x-www-form-urlencoded'}}
2requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61365%2Fauthz_cb&code=KfNePlXgpIVmoZU5NaGpDkMcSm6XkC&state=cjYuP58DEu49ixBA
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
2response{'access_token': 'TvkLZ2CBR7vVchfNogam', 'refresh_token': 'ojVC80P4UvGFXVPUgV9WTlJLwio5gjZQdSEj7mod', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoiSXhVdU1hcy1GSl9DNkRMT0FnYkh3dyIsIm5vbmNlIjoiWjNFZFlkbmRGTFc4RFNSMSIsImlhdCI6MTU2MDc1NTY5MCwiaXNzIjoiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My90ZXN0IiwiYXRfaGFzaCI6ImJOek4yMGJnRTJrcXdCZWRBWDdZQUEiLCJzdWIiOiJ0ZXN0dXNlciIsImV4cCI6MTU2MDc1OTExMCwiYXVkIjoiN3preExpYlRsalBOTnFLUkNJTkQifQ.S7Bq8QwpyM31EUlqMfrXouEUvFvkt8rwmzgGzsrrKfu6FJk1U6SZgk715x39a4m7Blv3dgowdUI7q2ZHqChUGDtsn3BVR_vA2Uy5CSvPj24pPm5cPxdP7nRM-WpecVenofGu9elFdxc9_FsUpHhu4n5-s-1a2eV-UB8Y-29kZzjgvUhIqJWdeNHnRqm_iGIgp0SVII6lokFCkUzwxmGa-JM6m_IQVxDaqRWaivm2WDT_GvXoI3yzdExr09LsRjXr8ubuLO1SZerREijCkZXff7IFoBuOFJn4ywr5qN3FmKe6sO3_KHFy85GNQfo2HpvJ-DLmcP5Bq7csKhRMSknD8g', 'token_type': 'bearer', 'expires_in': 3599}
2AccessTokenResponse
{
    "access_token": "TvkLZ2CBR7vVchfNogam",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "bNzN20bgE2kqwBedAX7YAA",
        "aud": [
            "7zkxLibTljPNNqKRCIND"
        ],
        "exp": 1560759110,
        "iat": 1560755690,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "Z3EdYdndFLW8DSR1",
        "rt_hash": "IxUuMas-FJ_C6DLOAgbHww",
        "sub": "testuser"
    },
    "refresh_token": "ojVC80P4UvGFXVPUgV9WTlJLwio5gjZQdSEj7mod",
    "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