Test Info

Test descriptionAccess token request with client_secret_basic authentication
Profile[]
Test IDOP-ClientAuth-Basic-Static
Timestamp2017-12-18T20:59:13Z
Issuerhttps://oidctest.idautoengineering.net/idp

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

0.0phase<--<-- 0 --- Webfinger -->-->
0.0not expected to doWebFinger
0.0phase<--<-- 1 --- Discovery -->-->
0.0provider_config
kwargs:{'issuer': 'https://oidctest.idautoengineering.net/idp'}
0.024http response
url:https://oidctest.idautoengineering.net/idp/.well-known/openid-configuration status_code:200
0.026ProviderConfigurationResponse
{
    "authorization_endpoint": "https://oidctest.idautoengineering.net/idp/profile/oidc/auth",
    "claim_types_supported": [
        "normal"
    ],
    "claims_parameter_supported": false,
    "claims_supported": [
        "sub",
        "name",
        "given_name",
        "family_name",
        "email"
    ],
    "display_values_supported": [
        "page"
    ],
    "grant_types_supported": [
        "authorization_code"
    ],
    "id_token_signing_alg_values_supported": [
        "RS256"
    ],
    "issuer": "https://oidctest.idautoengineering.net/idp",
    "jwks_uri": "https://oidctest.idautoengineering.net/idp/profile/oidc/jwks",
    "request_parameter_supported": false,
    "request_uri_parameter_supported": true,
    "require_request_uri_registration": true,
    "response_modes_supported": [
        "query"
    ],
    "response_types_supported": [
        "code",
        "token",
        "id_token"
    ],
    "scopes_supported": [
        "openid"
    ],
    "subject_types_supported": [
        "public"
    ],
    "token_endpoint": "https://oidctest.idautoengineering.net/idp/profile/oidc/token",
    "token_endpoint_auth_methods_supported": [
        "client_secret_post",
        "client_secret_basic"
    ],
    "userinfo_endpoint": "https://oidctest.idautoengineering.net/idp/profile/oidc/userinfo",
    "userinfo_signing_alg_values_supported": [
        "RS256"
    ],
    "version": "3.0"
}
0.026phase<--<-- 2 --- AsyncAuthn -->-->
0.026AuthorizationRequest
{
    "client_id": "3000badf0c55d2cae7c22b3d63e3f667",
    "nonce": "4FlDxQYPc8V1hP1W",
    "redirect_uri": "https://op.certification.openid.net:60992/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "DuvihFTs0g3pthEL"
}
0.026redirect urlhttps://oidctest.idautoengineering.net/idp/profile/oidc/auth?scope=openid&nonce=4FlDxQYPc8V1hP1W&state=DuvihFTs0g3pthEL&response_type=code&client_id=3000badf0c55d2cae7c22b3d63e3f667&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60992%2Fauthz_cb
0.026redirecthttps://oidctest.idautoengineering.net/idp/profile/oidc/auth?scope=openid&nonce=4FlDxQYPc8V1hP1W&state=DuvihFTs0g3pthEL&response_type=code&client_id=3000badf0c55d2cae7c22b3d63e3f667&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60992%2Fauthz_cb
0.309response{'code': 'Arf.17_O1vxkykGKg2gjhVqmQGj4SKG-1_tXHkuBgC7i698PBB', 'state': 'DuvihFTs0g3pthEL'}
0.31response{'code': 'Arf.17_O1vxkykGKg2gjhVqmQGj4SKG-1_tXHkuBgC7i698PBB', 'state': 'DuvihFTs0g3pthEL'}
0.31AuthorizationResponse
{
    "code": "Arf.17_O1vxkykGKg2gjhVqmQGj4SKG-1_tXHkuBgC7i698PBB",
    "state": "DuvihFTs0g3pthEL"
}
0.31phase<--<-- 3 --- AccessToken -->-->
0.31requestop_args: {'authn_method': 'client_secret_basic', 'state': 'DuvihFTs0g3pthEL'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:60992/authz_cb'}
0.31do_access_token_request
kwargs:{'state': 'DuvihFTs0g3pthEL', 'request_args': {'code': 'Arf.17_O1vxkykGKg2gjhVqmQGj4SKG-1_tXHkuBgC7i698PBB', 'state': 'DuvihFTs0g3pthEL', 'grant_type': 'authorization_code', 'client_id': '3000badf0c55d2cae7c22b3d63e3f667', 'redirect_uri': 'https://op.certification.openid.net:60992/authz_cb'}, 'authn_method': 'client_secret_basic'}
0.31AccessTokenRequest
{
    "client_id": "3000badf0c55d2cae7c22b3d63e3f667",
    "code": "Arf.17_O1vxkykGKg2gjhVqmQGj4SKG-1_tXHkuBgC7i698PBB",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:60992/authz_cb",
    "state": "DuvihFTs0g3pthEL"
}
0.31request_urlhttps://oidctest.idautoengineering.net/idp/profile/oidc/token
0.31request_http_args{'headers': {'Authorization': 'Basic MzAwMGJhZGYwYzU1ZDJjYWU3YzIyYjNkNjNlM2Y2Njc6ODY5N2E4OTlhYzFjNzYwODAyNmM4ZDEzN2E1YzMzYTAwM2RlMDA1MDc2MzBmMmQ2OGM5NTNlMTNkNzVlNjFiYg==', 'Content-Type': 'application/x-www-form-urlencoded'}}
0.31requestclient_id=3000badf0c55d2cae7c22b3d63e3f667&state=DuvihFTs0g3pthEL&code=Arf.17_O1vxkykGKg2gjhVqmQGj4SKG-1_tXHkuBgC7i698PBB&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60992%2Fauthz_cb
0.346http response
url:https://oidctest.idautoengineering.net/idp/profile/oidc/token status_code:200
0.347response{'refresh_token': '4Hh0WDMtG2wxAXFSkC0Khw9mWgCn9tCIQPhbGstcabL72m07IN', 'expires_in': 32399, 'scope': 'openid', 'access_token': '-yvagxmH8Xrs9kVy4R_53jFHqpSfaKcI0ZUGaUIg5pYRXkt-jL', 'id_token': 'eyJraWQiOiI2NTJlNjk1N2UxNzNmYzYxOTYxN2ZhMjNjMzZjYmFjNTRhNWZhNzhlNjBiNzA2Mjg5NmI2ZDgzNTdkNDVhOWYxIiwiYWxnIjoiUlMyNTYifQ.eyJpYXQiOjE1MTM2MzA3NTMsImV4cCI6MTUxMzYzMDgxMywiaXNzIjoiaHR0cHM6Ly9vaWRjdGVzdC5pZGF1dG9lbmdpbmVlcmluZy5uZXQvaWRwIiwiYXVkIjoiMzAwMGJhZGYwYzU1ZDJjYWU3YzIyYjNkNjNlM2Y2NjciLCJzdWIiOiIyNjIwMjdhMC1hZjc3LTExZTctODc2ZC0wMjc0MGM1NDljY2EiLCJhdXRoX3RpbWUiOjE1MTM2MzAzNDgsIm5vbmNlIjoiNEZsRHhRWVBjOFYxaFAxVyIsImF6cCI6IjMwMDBiYWRmMGM1NWQyY2FlN2MyMmIzZDYzZTNmNjY3IiwibmFtZSI6IlN5c3RlbSBBZG1pbiIsImdpdmVuX25hbWUiOiJTeXN0ZW0iLCJmYW1pbHlfbmFtZSI6IkFkbWluIiwiZW1haWwiOiJqYmVsbGFzc2FpQGlkZW50aXR5YXV0b21hdGlvbi5jb20iLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXRfaGFzaCI6IjBndE5tUmoySzktY0NkWTlhdGRES2c9PSJ9.VR42Hatuqk33Y9YL8f0nhLS-2erwXmHeTwQpAMqB7JzJs6FysYZxKkRUPiqe5zWdD-fHnhRCMjWXD9Z1IHSQSxIvyJPH-JOArPepGaICAqLBGQr4L1P-UUC2E_uoe5xeDTqF0PpBzmQloLZWI6nSq4QwD7XoxVXxD34mLniSL98-PGLyWHM_d4XimSXDzuHk48QGAXcDUrsKq73grYtwu3CF8DOA_neOue2OletUNWPFW-KRLsLVHd1xe02aGFMrSTkpIBM8a5nZBdfu3BMG1KwYGeUesxPJpAXD3wcdB62Frieyp9mcT8NaUKK3q0YWD7UDW9pK-SJiTVBbuNYreQ', 'token_type': 'Bearer'}
0.373AccessTokenResponse
{
    "access_token": "-yvagxmH8Xrs9kVy4R_53jFHqpSfaKcI0ZUGaUIg5pYRXkt-jL",
    "expires_in": 32399,
    "id_token": {
        "at_hash": "0gtNmRj2K9-cCdY9atdDKg==",
        "aud": [
            "3000badf0c55d2cae7c22b3d63e3f667"
        ],
        "auth_time": 1513630348,
        "azp": "3000badf0c55d2cae7c22b3d63e3f667",
        "email": "jbellassai@identityautomation.com",
        "email_verified": true,
        "exp": 1513630813,
        "family_name": "Admin",
        "given_name": "System",
        "iat": 1513630753,
        "iss": "https://oidctest.idautoengineering.net/idp",
        "name": "System Admin",
        "nonce": "4FlDxQYPc8V1hP1W",
        "sub": "262027a0-af77-11e7-876d-02740c549cca"
    },
    "refresh_token": "4Hh0WDMtG2wxAXFSkC0Khw9mWgCn9tCIQPhbGstcabL72m07IN",
    "scope": "openid",
    "token_type": "Bearer"
}
0.373phase<--<-- 4 --- Done -->-->
0.373end
0.374assertionVerifyResponse
0.374conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
0.374conditionDone: status=OK

Result

PASSED