【问题标题】:error: (407) Proxy Authentication Required in the IPP .Net AggCat DevKit错误:(407) IPP .Net AggCat DevKit 中需要代理身份验证
【发布时间】:2013-07-24 08:40:25
【问题描述】:

我正在尝试对客户帐户数据的 .NET 示例应用程序执行一些基本操作。 问题发生在以下代码 sn-p 中(当我选择银行并期待其详细信息时):

 protected void institutions_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                if (institutions.SelectedValue == "PleaseSelect")
                {
                    InstitutionDetails.Visible = false;
                }
                else
                {
                    InstitutionDetails.Visible = true;
                    AggregationCategorizationService svc = Services.AggCatService.GetService(Cache, HttpContext.Current.User.Identity.Name);
                    InstitutionDetail insutitutionDetail = svc.GetInstitutionDetails(long.Parse(institutions.SelectedItem.Value));

我收到以下错误:

错误详情:调用 GetInstitutionDetails 时出错: WebException:远程服务器返回错误:(407)代理 需要身份验证。代理验证: 协商,Kerberos,NTLM,基本领域 =“fw.solar.local” 通过:1.1 FW 连接:关闭代理连接:关闭杂注:无缓存 Cache-Control: no-cache Content-Type: text/html Content-Length: 701

我按原样执行示例,没有任何修改。 这可能是什么原因?我该如何解决?

【问题讨论】:

    标签: intuit-partner-platform customer-account-data-api


    【解决方案1】:

    您能否使用 CC 银行(虚拟机构)详细信息测试通话: https://developer.intuit.com/docs/0020_customeraccountdata/customer_account_data_api/testing_calls_to_the_api

    【讨论】:

    • Alex,我能够复制您的问题。我在配置中传递 .key 文件以获取私钥路径,并得到与您相同的错误。您可以尝试以下方法 - 转到此链接并生成 .p12 文件。这是您的私人文件。 developer.intuit.com/docs/0020_customeraccountdata/… 现在,在选择您的 .p12 文件并提供密码后,首先在 API 资源管理器中检查您的密钥。如果可行,那么代码也应该可以工作
    【解决方案2】:

    您能否使用 CAD apiexplorer 检查您的密钥和 SAML 流程是否正常工作 https://developer.intuit.com/apiexplorer?apiname=CustomerAccountData

    使用 openssl 生成密钥 - https://developer.intuit.com/docs/0020_customeraccountdata/007_firstrequest

    生成这些密钥后,您可以使用公钥创建示例应用。 https://developer.intuit.com/docs/0020_customeraccountdata/009_using_customeraccountdata/0010_gettingstarted/0015_create_an_cad_integration

    然后在 apiexplorer 链接中使用带有 pwd(如果有)的 .p12 文件进行 SAML 断言 - https://developer.intuit.com/apiexplorer

    此代码(407)与 401 类似,但表示客户端应首先通过代理服务器进行身份验证。

    【讨论】:

    • 检查了所有这些步骤。钥匙没问题。此外,这些密钥与来自同一台机器的 Ruby 示例一起使用。还有什么其他原因?
    • 我可以从 SDK 接收 OAuth Access Token 和 OAuth Access Token Secret 吗?我想是 OAuth 过程中的原因。
    • 我检查了web.config中的所有参数。它们是 100% 正确的(我在 apiexplorer developer.intuit.com/apiexplorer?apiname=CUSTOMERACCOUNTDATA 中检查了它们)。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-11-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多