Comments (2)
Keep in mind that turning off nc checking defeats the purpose of nc. Since nc should be a request counter (per rfc, https://tools.ietf.org/html/rfc2617#section-3.2.2), out-of-order values seem to be possible only if the same nonce is reused on multiple connections to the same server, which seems to be a broken client side implementation (e.g. rfc explicitly allows server to even force new per-request nonce values to clients, using next-nonce, https://tools.ietf.org/html/rfc2617#section-4.3). Do you have a (preferably simple) way to reproduce this?
from go-http-auth.
It's not just broken clients (which exist), it's also possible to get out of order nc values due to ajax requests, proxies between client and server, etc. In my case I've used go-http-auth to implement auth in a proxy server and I routinely see out of order ncs while surfing through my proxy. Some googling indicates Apache, Squid, etc have settings to deal with this by turning off nc checking.
I made a local change to optionally disable nc checking via a flag in the DigestAuth struct, will send you a PR soon
from go-http-auth.
Related Issues (20)
- New release HOT 1
- How to create a password from string HOT 1
- Tag v1 version and add it to gopkg.in
- Support digest with SHA-256 and SHA-512/256 as per RFC 7616 HOT 3
- Can i use this to send HTTP GET to a Digest authenticated server? HOT 1
- DigestAuth functions aren't thread-safe (Race conditions) HOT 3
- Go 1.10: misc_test.go:35: Fatalf format %s reads arg #3, but call has only 2 args
- BasicAuth password generate HOT 2
- algorithm HOT 1
- Session Expiry handling
- Update example?
- use of raw map for digest.clients leads to concurrent writes to map HOT 1
- Documentation on how to set passwords. HOT 1
- intermittent failure to find passwords (possible race?) HOT 4
- concurrent map read and map write HOT 2
- More crypters [Patch included] HOT 2
- MD5Crypt takes up high CPU HOT 3
- Double lock in digest
- Imlement http.Handler interface
- repeat ask user and password when using digest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-http-auth.