Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-IDToken-c_hash
Test descriptionID Token has c_hash when ID Token and Authorization Code returned from Authorization Endpoint [Hybrid]
Timestamp2019-06-17T15:04:10Z

Conditions


verify-authn-response: status=OK [Checks that the last response was a JSON encoded authentication message]
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 id_token token'], 'grant_types': ['authorization_code', 'implicit'], 'application_name': 'OIC test tool', 'application_type': 'web', 'redirect_uris': ['https://op.certification.openid.net:61737/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61737/logout'], 'url': 'https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition', 'jwks_uri': 'https://op.certification.openid.net:61737/static/jwks_61737.json', 'token_endpoint_auth_method': 'private_key_jwt'}
0RegistrationRequest
{
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "jwks_uri": "https://op.certification.openid.net:61737/static/jwks_61737.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61737/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61737/authz_cb"
    ],
    "response_types": [
        "code id_token token"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
1http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition status_code:200
1RegistrationResponse
{
    "application_type": "web",
    "client_id": "VRjUWacij7rC0ULL9rGB",
    "client_id_issued_at": 1560783848,
    "client_secret": "THtRfsjoXVCaqA9KvDFm",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "jwks_uri": "https://op.certification.openid.net:61737/static/jwks_61737.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61737/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61737/authz_cb"
    ],
    "registration_access_token": "KBYjPK5Vj01yvC5UwzMa",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=VRjUWacij7rC0ULL9rGB",
    "response_types": [
        "code",
        "id_token",
        "token"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
1phase<--<-- 3 --- AsyncAuthn -->-->
1AuthorizationRequest
{
    "client_id": "VRjUWacij7rC0ULL9rGB",
    "nonce": "snbirg6qMxWcuRO8",
    "redirect_uri": "https://op.certification.openid.net:61737/authz_cb",
    "response_type": "code id_token token",
    "scope": "openid",
    "state": "N9KRiEmDdCzHEeCM"
}
1redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=N9KRiEmDdCzHEeCM&nonce=snbirg6qMxWcuRO8&response_type=code+id_token+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61737%2Fauthz_cb&client_id=VRjUWacij7rC0ULL9rGB
1redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=N9KRiEmDdCzHEeCM&nonce=snbirg6qMxWcuRO8&response_type=code+id_token+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61737%2Fauthz_cb&client_id=VRjUWacij7rC0ULL9rGB
2http args{}
2responseURL with fragment
2responseaccess_token=eyWtnkFOfixmeigfSGao&state=N9KRiEmDdCzHEeCM&expires_in=3599&token_type=bearer&code=yX4TxsYmRpdTJJs9wWcKWkXJrzb1OD&scope=openid&id_token=eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMTI4Q0JDLUh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eubGqlCPiP45EEhqGdKcoqBd1ia-Olb-SxNvgyWCQogCwokyZc-Yg4Xi9DEcQETpjH-645pPbFmKX0a8SLVZg7YnvHArM8gzk-EJ8UV69nEFt6tB2XmhJXuw5JP2envHAm_4bj3XFddFfP4JSNejVdjIuV0ZYSNVqiMUchvgvaEIafNmtCXwDe7S68fodSVfnk0BGGPfscrHPz6addBGmBXxu_8eUyU8YfyOi8BxYvBns8SqCiDpIUKmq6XW-BHo8hTu8-i2Po6iqyjRHC6DXq7ODT0t6G46g_ZdZzO74CxIJi6UOS1osSdgEK0l4JtxwsoLS4KO3qyDG1YP7SYjBooXeGrityLS8jSYLu86w.8b4hSeLMezWTdjHPt6l8_w
2response{'access_token': 'eyWtnkFOfixmeigfSGao', 'state': 'N9KRiEmDdCzHEeCM', 'expires_in': 3599, 'token_type': 'bearer', 'code': 'yX4TxsYmRpdTJJs9wWcKWkXJrzb1OD', 'scope': 'openid', 'id_token': 'eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2Iiwia2lkIjoiZ3RINHYzWXIyUXFMcmVCU3owQnlRUTh2a2Y4ZUZvMUtJaXQzcy0zQmJ3dyIsImN0eSI6IkpXVCJ9.df309paKcpTB6rqqOnlCXVidgcxcjag8KxfQho9vBwQLAQJxiFlEnxsP668x2mj-fDsmUDXb3z26NaT_Vae2wUD2B-xRhlKt-_oklFAiHbwWX4a8fGv2Yf4sdqIwSSx6CSHPGkXtT1RiiAYHNUNc1kwkrwC7Fuvt3NME6bJrXwiKh7VLlmr9bPJjtsQUJn9sQAW1bLHxd7Emq8IErZzTuOml2pSjfQVnKBWXc8STgWmsSXDsEthPkzEOzhX0Kmixug4XxNStp5zJ0m0jqizTmBgI5jhYyExr7Y7uOLkf3fr0wSf8-ntr-rZMWyZeGIVmH_u8Jj2plR-rreO6XUazrQ.2ZGffTL1dCP-CpYudAZzjA.puFb_VFnalU7bgmw3HuIJJHhrao0uBZ066m9RY1RnfPAKPES3ZyvDTfWn3i98kndyjAJCZLOwbaQ_NdknjvCH1LkRddCoAMcgOxgJeBZnzpva_X-SPKspXny_Fmf8KfWP5na6Q6lSVJ_MPTwEmC109PBiN11-6ixerLb49mNuG62vNDE5W9i13BTBbHMGgue32TVAXrmpSwSqSltMr0j61nlm4WV5DhceDh5snnxFAsiJhKukwXtTo-pP868K8wiiLZMPRv172JA_9QZ5mCFzZTDR3kVC26SsaMhSdhhnl-9zp5AckL1Fozs2fk3kCDgrVkG6mlyXTvUmLmPr-naJsNCjfMMzCQxjxacj5QLCg4c4pjkWbs3SgwE82zfntIQxXFmqR-0cVLiFHTRJ7BE9SCWvkXehMQ58ZdG_vcp4Kw1Q7cdwgc5AN1mLObxfDNv4wA-flka_c9SNQo6yRWajo499EkTubcoFQFYXmHQSF8QtANMho_y_YAtihHwyOLZr238JweeTlm-iFdTDzyqIKa5TQuueAo5tJ2VJG4bsGU8gzYbeOgHnyX31nPbpt5QK0nZdDHFXV_hpnbOrSC2Uy1WeWUo1hVWC6PVsfWm_bdU-eubGqlCPiP45EEhqGdKcoqBd1ia-Olb-SxNvgyWCQogCwokyZc-Yg4Xi9DEcQETpjH-645pPbFmKX0a8SLVZg7YnvHArM8gzk-EJ8UV69nEFt6tB2XmhJXuw5JP2envHAm_4bj3XFddFfP4JSNejVdjIuV0ZYSNVqiMUchvgvaEIafNmtCXwDe7S68fodSVfnk0BGGPfscrHPz6addBGmBXxu_8eUyU8YfyOi8BxYvBns8SqCiDpIUKmq6XW-BHo8hTu8-i2Po6iqyjRHC6DXq7ODT0t6G46g_ZdZzO74CxIJi6UOS1osSdgEK0l4JtxwsoLS4KO3qyDG1YP7SYjBooXeGrityLS8jSYLu86w.8b4hSeLMezWTdjHPt6l8_w'}
2AuthorizationResponse
{
    "access_token": "eyWtnkFOfixmeigfSGao",
    "code": "yX4TxsYmRpdTJJs9wWcKWkXJrzb1OD",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "tsTqQ3ljy7wuw-SOosC4Gg",
        "aud": [
            "VRjUWacij7rC0ULL9rGB"
        ],
        "c_hash": "aDEjanxC6xY7rr6MgvXpig",
        "exp": 1560787269,
        "iat": 1560783849,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "snbirg6qMxWcuRO8",
        "sub": "testuser"
    },
    "scope": "openid",
    "state": "N9KRiEmDdCzHEeCM",
    "token_type": "bearer"
}
2phase<--<-- 4 --- Done -->-->
2end
2assertionVerifyAuthnResponse
2conditionverify-authn-response: status=OK [Checks that the last response was a JSON encoded authentication message]
2conditionDone: status=OK

Result

PASSED