go-http-auth icon indicating copy to clipboard operation
go-http-auth copied to clipboard

Documentation on how to set passwords.

Open sakoht opened this issue 5 years ago • 1 comments

This library is great, and seems to be a full replacement for the standard Apache http auth. However it is impossible to actually use if someone doesn't know how to set passwords. I think people are left doing what I am doing: scratching my head and reading the source code, guessing, and failing repeatedly.

Ultimately this needs a simple extension to the README that:

  • enumerates the ways that a password can be set
  • shows one example of using each

Ideally one example shows how to just make it read a standard .htaccess file and have it just work. Everything else is a corner case.

If I figure this out, I'll make a PR.

sakoht avatar May 16 '19 02:05 sakoht

This overlaps #56 asking about how to do this with BasicAuth.

sakoht avatar May 16 '19 02:05 sakoht