【问题标题】:How do you use Fiddler with Windows Authentication?您如何将 Fiddler 与 Windows 身份验证一起使用?
【发布时间】:2017-05-04 13:37:07
【问题描述】:

我知道您可以选中“自动验证”复选框,但这会使用当前登录用户的凭据。我正在访问不同 AD 域中的服务器,需要提供不同的凭据。

所以我在mydomain/myusername 下登录,但我需要用来访问此服务器的凭据是serverdomain/serverusername。我也无法在笔记本电脑上以serverdomain\serverusername 身份登录。在 Fiddler 的某个地方我可以输入我希望它使用的凭据吗?

【问题讨论】:

    标签: .net windows-authentication fiddler


    【解决方案1】:

    来自Fiddler manual:

    static function OnBeforeRequest(oSession: Session) {
        // To use the current Fiddler user's credentials:
        if (oSession.HostnameIs("ServerThatDemandsCreds")) {
            oSession["x-AutoAuth"] = "(default)";
        }
    
        // or, to use explicit credentials...
        if (oSession.HostnameIs("ServerUsingChannelBinding")) {
            oSession["x-AutoAuth"] = "redmond\\ericlaw:MyP@$$w0rd";
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-09-28
      • 2020-03-12
      • 1970-01-01
      • 1970-01-01
      • 2020-03-23
      • 2011-04-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多