Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-ClientAuth-SecretPost-Dynamic
Test descriptionAccess token request with client_secret_post authentication
Timestamp2019-06-17T06:38: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'], 'grant_types': ['authorization_code'], 'application_name': 'OIC test tool', 'application_type': 'web', 'redirect_uris': ['https://op.certification.openid.net:61164/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61164/logout'], 'url': 'https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition', 'jwks_uri': 'https://op.certification.openid.net:61164/static/jwks_61164.json', 'token_endpoint_auth_method': 'client_secret_post'}
0RegistrationRequest
{
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61164/static/jwks_61164.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61164/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61164/authz_cb"
    ],
    "response_types": [
        "code"
    ],
    "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": "JyWOxPftz4zyZiHlvIil",
    "client_id_issued_at": 1560753527,
    "client_secret": "BMYWcwPdRCtI2cOm5Gv3",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61164/static/jwks_61164.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61164/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61164/authz_cb"
    ],
    "registration_access_token": "NDJVBBfhSAqjoz0QPVNQ",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=JyWOxPftz4zyZiHlvIil",
    "response_types": [
        "code"
    ],
    "token_endpoint_auth_method": "client_secret_post"
}
0phase<--<-- 3 --- AsyncAuthn -->-->
0AuthorizationRequest
{
    "client_id": "JyWOxPftz4zyZiHlvIil",
    "nonce": "hv4ugEzqibMiKycV",
    "redirect_uri": "https://op.certification.openid.net:61164/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "Ss8PhcRuhhZC7Mie"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=Ss8PhcRuhhZC7Mie&nonce=hv4ugEzqibMiKycV&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61164%2Fauthz_cb&client_id=JyWOxPftz4zyZiHlvIil
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=Ss8PhcRuhhZC7Mie&nonce=hv4ugEzqibMiKycV&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61164%2Fauthz_cb&client_id=JyWOxPftz4zyZiHlvIil
2responseResponse URL with query part
2response{'state': 'Ss8PhcRuhhZC7Mie', 'code': 'elreHL83BIcNowRtaYIJCrnMlVLdqD'}
2response{'state': 'Ss8PhcRuhhZC7Mie', 'code': 'elreHL83BIcNowRtaYIJCrnMlVLdqD'}
2AuthorizationResponse
{
    "code": "elreHL83BIcNowRtaYIJCrnMlVLdqD",
    "state": "Ss8PhcRuhhZC7Mie"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'Ss8PhcRuhhZC7Mie', 'authn_method': 'client_secret_post'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61164/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61164/authz_cb', 'code': 'elreHL83BIcNowRtaYIJCrnMlVLdqD', 'state': 'Ss8PhcRuhhZC7Mie', 'grant_type': 'authorization_code', 'client_id': 'JyWOxPftz4zyZiHlvIil'}, 'state': 'Ss8PhcRuhhZC7Mie', 'authn_method': 'client_secret_post'}
2AccessTokenRequest
{
    "client_id": "JyWOxPftz4zyZiHlvIil",
    "client_secret": "BMYWcwPdRCtI2cOm5Gv3",
    "code": "elreHL83BIcNowRtaYIJCrnMlVLdqD",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61164/authz_cb",
    "state": "Ss8PhcRuhhZC7Mie"
}
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%3A61164%2Fauthz_cb&code=elreHL83BIcNowRtaYIJCrnMlVLdqD&state=Ss8PhcRuhhZC7Mie&client_id=JyWOxPftz4zyZiHlvIil&client_secret=BMYWcwPdRCtI2cOm5Gv3
3http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
3response{'access_token': 'r3kX4c339IFKEvb5WNDh', 'refresh_token': 'HdkiHcWIdEqGbIrpRR0o8NKhVKYK9vcxYPApgvUr', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoiNFhOVlBHQVhWSkpfNGFMZUFhb2lBdyIsIm5vbmNlIjoiaHY0dWdFenFpYk1pS3ljViIsImlhdCI6MTU2MDc1MzUyOSwiaXNzIjoiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My90ZXN0IiwiYXRfaGFzaCI6Ilh0UF83VE9jVFBwYUwwLUpoOUg4dUEiLCJzdWIiOiJ0ZXN0dXNlciIsImV4cCI6MTU2MDc1Njk0OSwiYXVkIjoiSnlXT3hQZnR6NHp5WmlIbHZJaWwifQ.rD-LQKH1P-4SJJi8jMqdxa1C8fgW2EmC6FdPnk3gDcUBTipt-PMpmYH9XS_YsOCBIyxmm-bJqjWEb7NqwsuVxNF61DdvcTXESyLYqM_agCAN-T7QlUDvogVR4VnoFjVz8j-ztRKdX1yXaeOMgQ5YmzfJKiLkar1R6OZWeYG2J7nsJEAvXf2rj28gjNB-PSF4U3j3Pvpyq3lPpLrj2bub7nr__OxSentPXgZtNo8NvalD7XGtH0Kepx66m2MMIzLSlEHOcNKSl-CR7opCjnzVtHkTnY9z103AVJq6XULyBxWyoKCJ2CEgDL9NPsPjzaWfNlZ8s4WxTHv33M7sIzJjLA', 'token_type': 'bearer', 'expires_in': 3599}
3AccessTokenResponse
{
    "access_token": "r3kX4c339IFKEvb5WNDh",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "XtP_7TOcTPpaL0-Jh9H8uA",
        "aud": [
            "JyWOxPftz4zyZiHlvIil"
        ],
        "exp": 1560756949,
        "iat": 1560753529,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "hv4ugEzqibMiKycV",
        "rt_hash": "4XNVPGAXVJJ_4aLeAaoiAw",
        "sub": "testuser"
    },
    "refresh_token": "HdkiHcWIdEqGbIrpRR0o8NKhVKYK9vcxYPApgvUr",
    "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