hapijs / crumb

CSRF crumb generation and validation for hapi
Other
171 stars 50 forks source link

Add “dry run” mode #116

Closed AlonMiz closed 5 years ago

AlonMiz commented 6 years ago

It would be nice to have a "dry run" capability. This will allow to deploy the plugin in a running app, while not disconnecting all users at the deployment time. This way, the first deploy will be dry (set tokens, allowing users to get the tokens), and the second deploy will validate the tokens. Meaning, the dry run mode will skip only the csrf tokens validation, not the creation of the csrf tokens. The current “skip” function option disables the creation as well as the validation. which doesn't help in this situation.

AlonMiz commented 6 years ago

Added this PR :) https://github.com/hapijs/crumb/pull/117

spanditcaa commented 5 years ago

Sorry for the delay @AlonMiz - will check this out by this weekend.

spanditcaa commented 5 years ago

This was merged in #117

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.