0

I understand a bit about digest authentication from here http://en.wikipedia.org/wiki/Digest_access_authentication, but I am pretty unclear on where, when or how it is used. I can't find anything on that side of it.

Where, when and why would a webmaster use it? Does it require any extra code on a site if the server has it implemented?

As you can see, I pretty much in the dark about how it is used, so any info would be helpful.

Maybe this could become a FAQ

1
  • John Conde closes question - people learn just that little bit less...
    – Steve
    Commented May 19, 2013 at 21:56

1 Answer 1

3

Apache server has mod_auth-digest that implements it. It is more secure than basic authentication and can be used in place of it.

From the documentation:

Using MD5 Digest authentication is very simple. Simply set up authentication normally, using AuthType Digest and AuthDigestProvider instead of the normal AuthType Basic and AuthBasicProvider. Then add a AuthDigestDomain directive containing at least the root URI(s) for this protection space.

Appropriate user (text) files can be created using the htdigest tool.

Example:

<Location /private/>
    AuthType Digest
    AuthName "private area"
    AuthDigestDomain /private/ http://mirror.my.dom/private2/

    AuthDigestProvider file
    AuthUserFile /web/auth/.digest_pw
    Require valid-user
</Location>

Not the answer you're looking for? Browse other questions tagged or ask your own question.