go-http-auth
go-http-auth copied to clipboard
Basic and Digest HTTP Authentication for golang http
I'm trying to test the code, when I using digest authorization, it will repeat asking password or each different page, any idea?
RFC 7616 defines a new algorithm header field and specifies SHA-256 and SHA-512/256 as valid options. It still supports MD5 for backwards compatibility, but explicitly recommends against it.
It good that we may set basic auth on per-endpoint level ```go http.HandleFunc("/user/", authenticator.Wrap(handleUser)) http.HandleFunc("/book/", authenticator.Wrap(handleBook)) ``` But for most cases it would be better to have some global "interceptor"...
When the authenticator's cache is purged, there was a consistent `slice bounds out of range [:200] with capacity 181` panic occurring. Purging the entire cache resolves this error. This is...
Hi, thanks for your great work, it's very usefull for me. I did a little change to add support for more crypters: https://github.com/webmeisterei/go-http-auth/commit/7616ea56faee4a7f203c195f22bee42c08774ce4 Do you want a pull request for...
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...
As the methodes like NewBasicAuthenticator etc. are deprecated, is there an updated of example of how to use this package?
My fork is starting to diverge, but sending you this in case you want it. Adds error checking to digest module. I have been using and testing this a lot...
I gave some more thought to your concerns about disabling nc checking and I think you're right, it's not a good idea. So I bit the bullet and implemented this...