Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Expose token validation function to allow for custom implementations #181

Open
1 task done
amorey opened this issue Dec 11, 2024 · 0 comments
Open
1 task done

Comments

@amorey
Copy link

amorey commented Dec 11, 2024

Is there an existing feature request for this?

  • I have searched the existing feature requests

Is your feature request related to a problem? Please describe.

I'm unable to use an origin check to validate WebSocket upgrade requests so I want to protect against cross-site WebSocket hijacking attacks by using CSRF token validation.

Describe the solution that you would like.

I would like the library to expose the token validation function so I can use the validation logic in my own method.

Describe alternatives you have considered.

Currently, I'm formulating POST requests on the fly configured with the initial HTTP GET upgrade request's credentials and passing them through a csrf protection instance ServeHTTP() method.

Anything else?

Great library! Thanks for all your work!

@amorey amorey changed the title [FEATURE] Validate HTTP GET upgrade requests to protect against CSWSH attacks [FEATURE] Expose token validation function to allow for custom implementations Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant