clagraff / gowebauth Goto Github PK
View Code? Open in Web Editor NEWGo library for providing middleware for HTTP auth schemes
License: MIT License
Go library for providing middleware for HTTP auth schemes
License: MIT License
tdyj
This one might end up being a PITA.
See the wikipedia article on digest auth to get an idea of how QOP plays into effect with auth requests.
Support a new Authorizer
for handling HTTP Digest Auth.
See: https://en.wikipedia.org/wiki/Digest_access_authentication for more information.
As part of the Authorizer
interface, the IsAuthorized(string) error
function should return both an optional error, and the identifier for successful authentication strings.
A la IsAuthorized(token string) (Identity string, Error error)
Break out the User
and Realm
authorizers and their tests into separate files. Like user.go
, realm.go
, and a associated test files.
The Digest.FailureHandler
function does not appear to be covered at all, when viewed with the coverage tool. This should be addressed as it is important to know that the function will work as expected.
tbd
It woule be nice to be able to combine multiple username and passwords into a single BasicAuth
struct for authentication.
Now that issue #18 has been merged, which un-exported a bunch of stuff from the packages, we no longer need the Nonce struct to be exported.
When using the OneUseStore
, nonces can be generated without having any method of forcing their removal. This means an attacker could continue to make unauthenticated requests in order to generate more nonces which will never be removed, thus eating away at the servers resources.
Add a change log similar to the one in openRCT2
This is a test of creating an epic
Parse supplied .htpasswd files to determine usernames and password hashes to be used for checking authentication.
Please see the generated godoc docstring for MakeRealm
. It can be found here.
Notice that there are backticks viewable in the docs. Remove these, as they should not have been there.
The following nonce stores would be great to include:
Under the nonce
section, there is a typo.
$ echo -n "gon:Restricted Page:hunter123" | md5sum<Paste>
shouldnt have the <Paste>
at the end.
Add a test coverage indicator, such as cover.run, to the readme for the project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.