What do you think about idea of adding tools here to manage csrf tokens?
Here are functions I think could be useful:
- Extract csrf token from session
- Generate masked csrf token (something like http://apidock.com/rails/ActionController/RequestForgeryProtection/masked_authenticity_token)
- Check if submitted masked csrf token corresponds to csrf token stored in session
- Generate new csrf token (maybe if session doesn't have one)
Would you accept pull request with package that implements some of the functions listed above?
What do you think about idea of adding tools here to manage csrf tokens?
Here are functions I think could be useful:
Would you accept pull request with package that implements some of the functions listed above?