Test Info

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

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_encryption_alg_values_supported": [
        "RSA-OAEP-256"
    ],
    "id_token_encryption_enc_values_supported": [
        "A128CBC-HS256"
    ],
    "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:61583/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61583/logout'], 'url': 'https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition', 'jwks_uri': 'https://op.certification.openid.net:61583/static/jwks_61583.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:61583/static/jwks_61583.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61583/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61583/authz_cb"
    ],
    "response_types": [
        "code"
    ],
    "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": "ewWdtk4fvtRagJ62FaYr",
    "client_id_issued_at": 1560786193,
    "client_secret": "KWrPQMjNXXDxUbaHutt1",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61583/static/jwks_61583.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61583/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61583/authz_cb"
    ],
    "registration_access_token": "UYhBUFKhqo1qTQiOeBSl",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=ewWdtk4fvtRagJ62FaYr",
    "response_types": [
        "code"
    ],
    "token_endpoint_auth_method": "client_secret_post"
}
1phase<--<-- 3 --- AsyncAuthn -->-->
1AuthorizationRequest
{
    "client_id": "ewWdtk4fvtRagJ62FaYr",
    "nonce": "Exoh1RVsAShvhV4r",
    "redirect_uri": "https://op.certification.openid.net:61583/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "1Bp1JMTKdfz59Ay6"
}
1redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=1Bp1JMTKdfz59Ay6&nonce=Exoh1RVsAShvhV4r&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61583%2Fauthz_cb&client_id=ewWdtk4fvtRagJ62FaYr
1redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=1Bp1JMTKdfz59Ay6&nonce=Exoh1RVsAShvhV4r&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61583%2Fauthz_cb&client_id=ewWdtk4fvtRagJ62FaYr
2responseResponse URL with query part
2response{'state': '1Bp1JMTKdfz59Ay6', 'code': '5pCUsihh4Q1Wwy078cdv4e9Hy9S5rr'}
2response{'state': '1Bp1JMTKdfz59Ay6', 'code': '5pCUsihh4Q1Wwy078cdv4e9Hy9S5rr'}
2AuthorizationResponse
{
    "code": "5pCUsihh4Q1Wwy078cdv4e9Hy9S5rr",
    "state": "1Bp1JMTKdfz59Ay6"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': '1Bp1JMTKdfz59Ay6', 'authn_method': 'client_secret_post'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61583/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61583/authz_cb', 'code': '5pCUsihh4Q1Wwy078cdv4e9Hy9S5rr', 'state': '1Bp1JMTKdfz59Ay6', 'grant_type': 'authorization_code', 'client_id': 'ewWdtk4fvtRagJ62FaYr'}, 'state': '1Bp1JMTKdfz59Ay6', 'authn_method': 'client_secret_post'}
2AccessTokenRequest
{
    "client_id": "ewWdtk4fvtRagJ62FaYr",
    "client_secret": "KWrPQMjNXXDxUbaHutt1",
    "code": "5pCUsihh4Q1Wwy078cdv4e9Hy9S5rr",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61583/authz_cb",
    "state": "1Bp1JMTKdfz59Ay6"
}
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%3A61583%2Fauthz_cb&code=5pCUsihh4Q1Wwy078cdv4e9Hy9S5rr&state=1Bp1JMTKdfz59Ay6&client_id=ewWdtk4fvtRagJ62FaYr&client_secret=KWrPQMjNXXDxUbaHutt1
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
2response{'access_token': '3QSy8n2FgwKLS4yjKnVV', 'refresh_token': 'oQ47oKfUCgku3fOJwt34uon2p1N3XKrTVwAx99ry', 'scope': 'openid', 'id_token': 'eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2Iiwia2lkIjoiZ3RINHYzWXIyUXFMcmVCU3owQnlRUTh2a2Y4ZUZvMUtJaXQzcy0zQmJ3dyIsImN0eSI6IkpXVCJ9.FdwRH7ZpeoGEM-mEgcG8GJixWf9M36zyWA3mqCPT97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MA2QM-GEvKQY2hMdI3fzQPkznK6N_YOojlcyvYIleIZ9JWCCtL6I-Pv2sZT1fw2ZSPIaAXKFXa2W30wtZaOHvuXXjkzN-s5jCEvxPDIwLrrMuQzPdjB3a-1_U6mmnRl5qQ1KSg7cBQPDwWEtF77NyyM_R1AwLvDDIFuC4bCp9EvYP5ZaZsh80GiuM1B8SxZRZnbKSu9sggKdZkI-LyUfKhBk6IdMCW3zCv2pRmxw.SEOLfx_VKN36t_4rL5_yTw', 'token_type': 'bearer', 'expires_in': 3599}
3AccessTokenResponse
{
    "access_token": "3QSy8n2FgwKLS4yjKnVV",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "fZ_dDTFoTYv9P15cCAclOA",
        "aud": [
            "ewWdtk4fvtRagJ62FaYr"
        ],
        "exp": 1560789614,
        "iat": 1560786194,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "Exoh1RVsAShvhV4r",
        "rt_hash": "fYB0yh1-ataQqG3g2dRozg",
        "sub": "testuser"
    },
    "refresh_token": "oQ47oKfUCgku3fOJwt34uon2p1N3XKrTVwAx99ry",
    "scope": "openid",
    "token_type": "bearer"
}
3jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
3jwe header{'alg': 'RSA-OAEP-256', 'enc': 'A128CBC-HS256', 'kid': 'gtH4v3Yr2QqLreBSz0ByQQ8vkf8eFo1KIit3s-3Bbww', 'cty': 'JWT'}
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