-
-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
There is no example for DigestStrategy's nonce validation callback right now, which makes it difficult to understand how complete the module's implementation is and if we're less secure if we don't supply such a callback. Also, we don't know what we should actually be doing in that callback, because the only example just returns true.
- Around line 182 of
lib/passport-http/strategies/digest.jswe see that if a validation callback wasn't provided, success is implied, so it appears that some extra verification can be added by this? - In the JSDoc, it's unclear whether
params.opaquenow will becomeparams.noncelater or if they're two different concepts. - Internal function
nonce()does seem to generate something unique, so I speculate that we might be safe against replays without a custom validation callback, but it's just an educated guess.
Metadata
Metadata
Assignees
Labels
No labels