We help IT Professionals succeed at work.

Issue accessing ASP.NET app from a Mac

djs120
djs120 asked
on
486 Views
Last Modified: 2012-06-27
Windows 2003 server, IIS 6
ASP.NET application (C#) that is mostly used on our internal network but a few users login from outside our network.  Upon hitting the application it checks to see if they are an authenticated user against Active Directory using code similar to this:

WindowsPrincipal authenticatedUser = User as WindowsPrincipal;
if (null != authenticatedUser)
{
      string username = authenticatedUser.Identity.Name;
        .........
}

===========
This works fine, even if they are outside of the network because it will simply prompt for a username/pwd to login.  The only user that is having problems is using a Macintosh (using Safari browser) and it immediately gives them a "You are not authorized to view this page" error.

I don't necessarily need a fix for this (although a fix would be great), but I just need proof/logic as to why this doesn't work on a Macintosh.

On a side note, I have had some users experience the "You are not authorized to view this page" if they are behind a firewall.  Do firewalls generally block the authorization token (?) that is passed between their browser and the server which would cause the error to display?

Thanks for any info you can provide.
Comment
Watch Question

You're using authentication scheme that Netscape
or Safari do not support.

Only IE understands Windows Authentication.

Author

Commented:
OK, but I can use Firefox both internally and externally to access the application and the only difference is that Firefox prompts for a username/password, but after that it works fine.
I stand corrected:

http://discussions.apple.com/thread.jspa?messageID=725841򱍑

You might have better luck with Tiger though.  But there seems to be a few workarounds, as well as a bug or 2 with Tiger and Safari.

Author

Commented:
I have trouble accessing that link.
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION


http://discussions.apple.com/thread.jspa?messageID=725841
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.