Showing posts with label authentication. Show all posts
Showing posts with label authentication. Show all posts

Monday, March 26, 2012

Windows Integrated Authentication prompting for password, Ajax calls are fully qualifying

Alright, here's my very strange story: I have an ASP.NET 2.0 webapp that utilizes Ajax, for some reason even if I type in "http://ServerName/DirectoryName" it will prompt for a password and it will show "Connect to ServerName.DomainName.com" instead of just "Connect To ServerName". If I choose not to authenticate it will still load the page, but none of the Ajax stuff will load, and on any ajax asynch callbacks it will prompt me to authenticate again. Also, I have manually added the fully qualified server url to my Local Intranet zone and am still getting prompted, and I have tried (just for troubleshooting) to set the Authentication settings for my Internet zone to always send username and password information, but it still prompts me for a username and password! Any help would be greatly appreciated, my biggest question iswhy are my Ajax callbacks using the fully qualified url instead of the shorter one I actually typed in?

Thanks!

Mark Ransom

So I've been hacking through this for weeks now (on and off) and as soon as I post my question to this forum I figure out what's wrong. Basically in Internet Explorer under Advanced Settings there's an option that says "Enable Integrated Windows Authentication", which you would think would need to be checked for this type of authentication to work correctly. You'd think so, and you'd be wrong (at least in my situation) because unchecking that box and restarting IE allowed my users to log directly into my app and all my Ajax calls work without prompting for authentication. This may or may not be of use to anyone else, but it took me a lot of head banging (against a wall) to figure out this backwards fix.

Thanks

Mark

Wednesday, March 21, 2012

XMLHTTP and Digest Authentication

Hi, I'm having some problems with XMLHTTP.open and digest authentication.


I am embedding the user name and password into the XMLHTTP.open function (method, file, async, "UserName", "Password"). The server is Apache. Basically, when I switch to Basic authentication, the script works fine. However, it does not work correctly when I switch authentication to Digest. HTTP status returns an odd number, (5 digits). And it looks like the callback function is never executed.

Anyone have any insights on this?

Hi,

It seems that the target page might have some errors.

Need more help on XML Http post, below link might help you..

http://www.devx.com/DevX/Tip/17500

Happy Coding

Please mark as "Answer" if you find this post helpful


1) The target page just spits out text. There's no scripting of any kind on the target page. The only sort of server action is .htaccess for authentication.

2) I'm not using POST. I'm using GET. However, that's irrelevant. The error exists either way.


Hi,

It's clear to us in helping if you post all your javascript and target page code.