18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
401 Authentication Required
When I try to hit my web site a message comes up that says:
Scheme: negotiate | Realm: null
401 Authentication Required
Generated by Sahi for 401 response
Username <field>
Password <field>
Authenticate <button>
How do I get past this?
Scheme: negotiate | Realm: null
401 Authentication Required
Generated by Sahi for 401 response
Username <field>
Password <field>
Authenticate <button>
How do I get past this?
Comments
You need to enter the username password for the website. If, without Sahi, you do not explicitly specify it, most probably your windows login credentials were being used.
Try
windows_username and password
or
windows_domain\windows_username and password
Note the backslash between domain and username. Forward slash will not work. Eg.
MYDOMAIN\dkelly is correct
MYDOMAIN/dkelly is NOT correct
Regards,
Narayan
I get the following in the console:
Apr 6, 2010 1:10:17 PM net.sf.sahi.RemoteRequestProcessor process401
INFO: scheme=negotiate; realm=null
Is there some other authentication or certificate I should make sure I have?
OR
Is there some way to authenticate my domain\username when I start up sahi?
>>> Credentials added: negotiate KBHC0\dkelly
Apr 6, 2010 1:36:09 PM net.sf.sahi.RemoteRequestProcessor process401
INFO: >>> Negotiate
Apr 6, 2010 1:36:09 PM net.sf.sahi.RemoteRequestProcessor process401
INFO: scheme=negotiate; realm=null
Have you solved the problem? i got the same error ,could you tell me ?
Specifying the username and password is all it should take to get 401 auth working.
Could you please post the information you see on Sahi Controller's info tab? Let us check if the environment etc. are fine.
Regards,
Narayan
Scheme: negotiate | Realm: null
401 Authentication Required
Generated by Sahi for 401 response
I type in Username KBHC0\dkelly and password then click on Authenticate. Then I get a message that says "to display the webpage again, Internet Explorer needs to resend the information you've previously submitted". Then it displays the authentication prompt all over again. This repeats every time I re-enter username and password. The Controller never opened.
The cmd window shows the following:
Jul 23, 2010 8:32:54 AM net.sf.sahi.RemoteRequestProcessor process401
INFO: >>> Negotiate
Jul 23, 2010 8:32:54 AM net.sf.sahi.RemoteRequestProcessor process401
INFO: scheme=negotiate; realm=null
>>> Credentials added: negotiate KBHC0\dkelly
Jul 23, 2010 8:33:34 AM net.sf.sahi.RemoteRequestProcessor process401
INFO: >>> Negotiate
Jul 23, 2010 8:33:34 AM net.sf.sahi.RemoteRequestProcessor process401
INFO: scheme=negotiate; realm=null
Can you use the latest build of Sahi and check? There have been a few bug fixes related to spaces at the end of realms, null realms etc.
Regards,
Narayan
Version : V3
Build : 2010-06-11
Browser
UserAgent : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Name : Microsoft Internet Explorer
Version : 4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Native XmlHTTPRequest : true
Is Java enabled : true
Is cookie enabled : true
Operating System
Name : Windows XP
Version : 5.1
Architecture : x86
Is process list available : true
Java
Java Installed Directory : C:\Program Files\Java\jre6
JRE Version : 1.6.0_20
Is keytool available : true
hi narayan
could you help me?
It not works
I set breakpoint in first line of doGet() and doPost() , never executed.
if i shutdown sahi , it will be executed
I am using the latest version of SAHI...
Anyone, Please help me if you have an answer to it.....
Plese create a new forum post.
Let me know what exactly you are trying to do what is the error message you are getting?
Regards
Sumitra