18 January 2026:


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

saini.007saini.007 Members
edited November -1 in Sahi - Open Source
Hi We are getting below error on accessing one of the applications hosted in the test environments:

You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending a WWW-Authenticate header field that the Web server is not configured to accept.

Please try the following:

Contact the Web site administrator if you believe you should be able to view this directory or page.
Click the Refresh button to try again with different credentials.
HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration.
Internet Information Services (IIS)


1.) Is this one of the Sahi limitations regarding 401 becuase of which we are getting this message.

2.) Other can we change the mode of authentication for this site, if yes then what change is needed to be done.

Comments

  • 401 authentication (Basic or Digest) is not supported by Sahi.
  • narayannarayan Administrators
    401 basic authentication has been added to Sahi and will be available in the next build.
  • narayannarayan Administrators
    StringyLow, do you think Saini would be able to use Sahi and ccproxy to get to his website?
  • Yes, I do think CCProxy would work.

    Here's a workaround for 401 Authentication... you'll need to chain proxies

    1. Download and install CCProxy. Get it here: http://www.youngzsoft.net/ccproxy/
    2. Point CCProxy to your corporate proxy and set CCProxy to send the authentication information.
    3. Modify Sahi\config\sahi.properties to point to CCProxy
    4. Point your browser to point to Sahi as usual.

    Try it out and let us know how it works.
Sign In or Register to comment.