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:18:06Z

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'], 'grant_types': ['authorization_code', 'implicit'], 'application_name': 'OIC test tool', 'application_type': 'web', 'redirect_uris': ['https://op.certification.openid.net:61716/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61716/logout'], 'url': 'https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition', 'jwks_uri': 'https://op.certification.openid.net:61716/static/jwks_61716.json', 'token_endpoint_auth_method': 'private_key_jwt'}
0RegistrationRequest
{
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "implicit",
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61716/static/jwks_61716.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61716/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61716/authz_cb"
    ],
    "response_types": [
        "code id_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": "TyE9sqif2Sv9DTCajOtK",
    "client_id_issued_at": 1560784685,
    "client_secret": "uzdVmDoYzmbcgK5W2yE5",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "implicit",
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61716/static/jwks_61716.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61716/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61716/authz_cb"
    ],
    "registration_access_token": "bTAk6X2flTUNMI3gJmZD",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=TyE9sqif2Sv9DTCajOtK",
    "response_types": [
        "code",
        "id_token"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
1phase<--<-- 3 --- AsyncAuthn -->-->
1AuthorizationRequest
{
    "client_id": "TyE9sqif2Sv9DTCajOtK",
    "nonce": "pTyRm5JO4AZByrwk",
    "redirect_uri": "https://op.certification.openid.net:61716/authz_cb",
    "response_type": "code id_token",
    "scope": "openid",
    "state": "SIa63stbDIPg6EuM"
}
1redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=SIa63stbDIPg6EuM&nonce=pTyRm5JO4AZByrwk&response_type=code+id_token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61716%2Fauthz_cb&client_id=TyE9sqif2Sv9DTCajOtK
1redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=SIa63stbDIPg6EuM&nonce=pTyRm5JO4AZByrwk&response_type=code+id_token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61716%2Fauthz_cb&client_id=TyE9sqif2Sv9DTCajOtK
2http args{}
2responseURL with fragment
2responseid_token=eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2Iiwia2lkIjoiZ3RINHYzWXIyUXFMcmVCU3owQnlRUTh2a2Y4ZUZvMUtJaXQzcy0zQmJ3dyIsImN0eSI6IkpXVCJ9.cl14cqJ4mPNq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k184XsnGH4Wx80vy8EDpvEJRzaF7_nUPJo-THBYpNABQ76yb7yPuzetFg0nt9BIwCOyXs8qotYjgKgYGrYY2Dbs_HKGaUiULtYTYdUfeF14rcFQraV7pW1C7XbSPHxv8noCVqQ3nrIWEU2KDOovojujeTdRB0RnIo1IDADEmHnbq3JPaMk9FDh4cfRveXHav3ttGwuoHBVyS7m6gjvY3RXM9oQl3JnqTsJWXS_Ue2MmNYrGWLiv8ZI8oc0VvMdAvLiUPH9f3_HWSwsbOxR5pEVNhSd8AJ1TCZ52dIg-RBwD1vgT2881RY__jmV542aW0jOK8hc0iZfE7bnYqE3gQQrLSJrYRAnziLmq1uwqXZA72s19du6xQ8VpjkZarQHc20nva0hbrXSY_M7HaVI2hRvRnMiobM8Nf9NlX8cK0ibh6j7T0PUA3MbM6puVsWwANkgqRfEv4AZAqN7VINnFySKng9TWOvoOCnKO_DB9JJ9bbDc8i3kgGdBWAGXapuG5N2HyEREfGz75QfMQE3mJiulIr0sic7mJV020Gx7v60lwZHuG6MrD5ru2u3IenhCoeOXEhcjFCHGNK4zVTs4XLVJXasOSlMJj4Stw6VKm2EefKGvU6AmzmmAfgjJjJi864kg.7vp3JuzsFAl8jbCuR0zvrg', 'state': 'SIa63stbDIPg6EuM', 'code': 'fmBuJwWEJHqdI9m46j5gz1qr5UsRQT'}
2AuthorizationResponse
{
    "code": "fmBuJwWEJHqdI9m46j5gz1qr5UsRQT",
    "id_token": {
        "aud": [
            "TyE9sqif2Sv9DTCajOtK"
        ],
        "c_hash": "qARN8z0s2xF4Gl4FG7GPfg",
        "exp": 1560788105,
        "iat": 1560784685,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "pTyRm5JO4AZByrwk",
        "sub": "testuser"
    },
    "state": "SIa63stbDIPg6EuM"
}
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