Link to home
Start Free TrialLog in
Avatar of mctc
mctc

asked on

Authentication Problem in Google Chrome Browser

I have recently downloaded the latest Google Chrome browser v31, when I run my Visual Studio web project locally in Google Chrome I receive an Authentication Required dialog, "The server http://localhost:80 requires a username and password". I am forced to click Login everytime. Is there a setting in Google Chrome that am missing?  I use IE11 browser without any problems.
When I run the same project on the production server using the same browser, there is no authentication problem. The problem is always on the development computer.  I use at Active Directory to access the users login with anonymous access disabled on the opening page.
Here is the code snippet:
    //ON-LOAD
    //=======
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.IsPostBack) { }
        else if (!(Page.IsPostBack))
        {

            String sUserName = User.Identity.Name;
            string[] words = sUserName.Split('\\');
            gstrLogin = words[1];
            //gstrLogin = "Sam";  //USE FOR TESTING

        }
    }
Avatar of Matthew Kelly
Matthew Kelly
Flag of United States of America image

The reason this is likely confusing to the experts is that Chrome uses the same Internet Settings for authentication as IE. Additionally, Chrome does have support for Auto NTLM (it didn't always).

I believe the default is supposed to be local intranet sites are trusted, but just in case:

In Chrome, if you click "Settings -> Show Advanced Settings... -> Change Proxy Settings..." and then click on the "Security" tab, add "http://localhost" to the "Trusted Sites" list. Uncheck the https button if you aren't using it.

Restart the browsers (and use it once in IE to cache the credentials) then try again.
Avatar of mctc
mctc

ASKER

I tried the expert comment and followed the directions. I could not run the project (using Visual Studio) in Google Chrome without the "Authentication Required" dialog showing up when the project run in debug mode.

I did notice that when I clicked the Log In button with my username & password it displays the page correctly. This is different then before, where it displayed "This webpage is not available".
However, the "Authentication Required" dialog continues to be a problem.
ASKER CERTIFIED SOLUTION
Avatar of Matthew Kelly
Matthew Kelly
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mctc

ASKER

I tried the  Internet Properties, security tab, local intranet settings had a check mark in "Automatically detect intranet network", Trusted sites already had the http://localhost website entered.
I went in to the Security tab clicked Custom Level and selected "Automatic logon only in Intranet zone" from "Automatic logon with current user name and password" through the Chrome advanced settings. I closed the browser and reopened the project in visual studio using Chrome several times to make sure the setting was set.
However, it did not fix the issue...
I am still prompted with a completed username and password dialog box and I have to click the Login button each time which then lets me view the webpage. I tried changing the username and password to something different, but nothing seems to resolve the dialog un & pwd issue.
Sorry, I don't have any further ideas as this should "just work".