Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Csrf token? #2

@romanoff

Description

@romanoff

What do you think about idea of adding tools here to manage csrf tokens?

Here are functions I think could be useful:

  1. Extract csrf token from session
  2. Generate masked csrf token (something like http://apidock.com/rails/ActionController/RequestForgeryProtection/masked_authenticity_token)
  3. Check if submitted masked csrf token corresponds to csrf token stored in session
  4. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions