Graphica Software - a Dokmai Pty Ltd Business


Handling HTTP Authentication Challenge with JavaScript

The following notes and code provide a solution to the handing of Web Server 401 Authentication challendge response and and hence avoiding having your web site have the defaults "User/Password" credentials dialog pop up.

The solution outlined allows you to handle both Basic and Digest based Authentication. The following diagrams illustrates the architecture, artifacts and and key HTTP sequence that takes place and how the scripts must handle this:

Handling 401 with JavaScript

The solution documented has been arrived at by reviewing the following outline and by doing some source code reviews of a number of Web sites including PayPal, Yahoo and LinkedIn, all of which avoid displaying the default credentials dialog to the user.

<Started To be Completed>

Summary

<To Be Competed>


All materials are copyright (C) 2011 Graphica Software/Dokmai Pty Ltd

Send any questions or comments regarding this site to info at graphica.com.au
Last Updated: Monday 11th June, 2011.