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-18T04:14:18Z

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": [
        "A128KW"
    ],
    "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 -->-->
0not expected to doDynamic registration
0phase<--<-- 3 --- AsyncAuthn -->-->
0AuthorizationRequest
{
    "client_id": "clientID",
    "nonce": "onhKsUr1ATsfh9qp",
    "redirect_uri": "https://op.certification.openid.net:61773/authz_cb",
    "response_type": "code id_token token",
    "scope": "openid",
    "state": "AZs8JEPJsztE20Im"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=AZs8JEPJsztE20Im&nonce=onhKsUr1ATsfh9qp&response_type=code+id_token+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61773%2Fauthz_cb&client_id=clientID
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=AZs8JEPJsztE20Im&nonce=onhKsUr1ATsfh9qp&response_type=code+id_token+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61773%2Fauthz_cb&client_id=clientID
1http args{}
1responseURL with fragment
1responseaccess_token=rb7DsVYAjUI8o2lcJa6H&state=AZs8JEPJsztE20Im&expires_in=3599&token_type=bearer&code=j8HpXDdLkJACSbxlg7MLNhSZkWzyqN&scope=openid&id_token=eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R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1response{'access_token': 'rb7DsVYAjUI8o2lcJa6H', 'state': 'AZs8JEPJsztE20Im', 'expires_in': 3599, 'token_type': 'bearer', 'code': 'j8HpXDdLkJACSbxlg7MLNhSZkWzyqN', 'scope': 'openid', 'id_token': 'eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldUIn0._SfX8y3Cm0w2XM6_afhN_f9pBTEMP3yhtfWvgdEddy_jPt48R4kjCw.0P4oVgGjAMoYuQ94HTVlJQ.-iy7bobh04D_TzZOF1IBjIhazQO_z-gbRxBrVsPiTOoxmTbuzBPknjsMo-ABIGQMJjokpiA9QHwC_krDJKz0JgRbkRGz3HxnT24kW_2aSu8x8fgL-Z1kzVaxQ0taKIfA0y8v4G7nVu4uZp9jEs-HSy2DRkijv7IHnU5OJezRhR-hoWRF9y6J24CB9Q3OGmtvfInlr0A52OmWuU5GpVA4YP0013oYUU1VqAvUS5Hfs_XbWRD0yr08wrW9oIAd-TcC_TMw6WLSmutJ9GPV2ViI-AAUJzZXnNWYC5_KGaKD36a2kkVZ7th26P4PT88QIfagw3HO_FVngT-aeIhqa6zGsTIohojRYSd-_C4M1K1CppzZu6chFQf5Awr3GLSqQPc7Vc17HB19Ze7Z99Bum6BxpZbtihG4f5FR4Cm_kycoCmOSNbnnr-0qTf_98-uOI0G0PeVJiRoeJpdGSB-BdiF7MIXNNZPKX3cxp8eCM6PkklKLkHqOTDRPl3cPpG50RvOz1KVtB6N-GlnofwiUcrEFtjiCeSYcjC18l-8tyKmDxf_kEBbyJ57vsgMtgE4einCAcWw71a3kNXNo4EdaVISg9V8YCApGMTtv_5X7f1WuRY7FPD5L1DwoeRrFbxYM2naJ5O1vP832JZMw09BjxMDMFSIAOhSfj2tjrn1qOjyuLWGn-prSvNho6anxpcvnoMXNd3k_MIQ0dzdnghu5N-G2h7ESeco-byB7OH36VHrO_FT1Ao0sTZoqX9EQDNxzLTZqjcDr6BPd7Q3-n1sTGTOvWs4AsGRBlM_eOlC9PW1sBZqB8NF6Eo1K_DdX-UWrjqHvl5fdEH7MY7P9GtUXRE8LUnycP5YKdnXmnjVg3PlrcszNCiYkEwGs9ubRT9en38Mydiyvcc6mDNAMPEkievvIvDsBjvbgHaOCeHNm4oni0OqiXO01NohmxJUQhqMqHkpf.TO_vAXsk03u4vjaNJNaTbA'}
1AuthorizationResponse
{
    "access_token": "rb7DsVYAjUI8o2lcJa6H",
    "code": "j8HpXDdLkJACSbxlg7MLNhSZkWzyqN",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "kshgOkohz09GuGt9vyL5ZQ",
        "aud": [
            "clientID"
        ],
        "c_hash": "_qshowOrP93rTD5BJVFfwg",
        "exp": 1560834677,
        "iat": 1560831257,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "onhKsUr1ATsfh9qp",
        "sub": "testuser"
    },
    "scope": "openid",
    "state": "AZs8JEPJsztE20Im",
    "token_type": "bearer"
}
1phase<--<-- 4 --- Done -->-->
1end
1assertionVerifyAuthnResponse
1conditionverify-authn-response: status=OK [Checks that the last response was a JSON encoded authentication message]
1conditionDone: status=OK

Result

PASSED