This is a migrated thread and some comments may be shown as answers.

getting "authentication required"

2 Answers 2315 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
g
Top achievements
Rank 1
g asked on 14 Jul 2018, 07:50 AM

Hi, 

 

I used fiddler composer to send a request from windows machine, but I receive 407, I turned on "auto authenticate" in options. So there is what I see in the sessions window:

session1:

GET http://www.example.com/ HTTP/1.1
User-Agent: Fiddler
Host: www.example.com


HTTP/1.1 407 authenticationrequired
Date: Sat, 14 Jul 2018 07:44:18 GMT
Content-Type: text/html
Cache-Control: no-cache
Content-Length: 12629
Proxy-Connection: Keep-Alive
Proxy-Authenticate: Negotiate
Proxy-Authenticate: NTLM


session2:

GET http://www.example.com/ HTTP/1.1
User-Agent: Fiddler
Host: www.example.com
Proxy-Authorization: Negotiate TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw==


HTTP/1.1 407 authenticationrequired
Date: Sat, 14 Jul 2018 07:44:18 GMT
Content-Type: text/html
Cache-Control: no-cache
Content-Length: 12629
Proxy-Connection: Keep-Alive
Proxy-Authenticate: NTLM
Proxy-Support: Session-Based-Authentication

--------------------------------------------

 

And that's it. How do I make it to go through?

 

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
g
Top achievements
Rank 1
answered on 14 Jul 2018, 07:56 AM

Also , here is what I see in the LOG panel:

 

09:44:18:5157 Automatic authentication of Session #12 was unsuccessful. System.Exception AuthenticationManager.Authenticate returned null.
   at Fiddler.Session.ž() in C:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\Session.cs:line 4427

0
Kammen
Telerik team
answered on 20 Jul 2018, 08:47 AM
Hi,

When you enable auto authenticate, Fiddler is using the default credentials to authenticate. You can specify username and password to authenticate with as follows:

static function OnBeforeRequest(oSession: Session)    
{      
   if (oSession.HostnameIs("ServerUsingChannelBinding"))
   {        
        oSession["x-AutoAuth"] = "username:MyP@$$w0rd";     
   }
}

Hope this helps.

Regards,
Kammen
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Fiddler Classic
Asked by
g
Top achievements
Rank 1
Answers by
g
Top achievements
Rank 1
Kammen
Telerik team
Share this question
or