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

Configure AntiForgery in WebApp #295

Closed
wants to merge 3 commits into from

Conversation

raix
Copy link
Contributor

@raix raix commented Jan 15, 2024

Summary & Motivation

We want to prevent cross-site request forgery (XSRF/CSRF) attacks.

This pull-request adds token exchange via runtime environment allowing the api client to send the token in headers.

We also add and configure the anti forgery middleware.

Checklist

  • I have added a Label to the pull-request
  • I have added tests, and done manual regression tests
  • I have updated the documentation, if necessary

@raix raix added the enhancement New feature or request label Jan 15, 2024
@raix raix self-assigned this Jan 15, 2024
@raix raix linked an issue Jan 15, 2024 that may be closed by this pull request
Copy link
Member

@tjementum tjementum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do I test this. I tried to make it fail, but it could not. Am I missing something?

CleanShot 2024-01-15 at 22 56 00@2x

@raix raix force-pushed the 294-configure-antiforgery-in-webapp branch from 3541e8c to 54cfa4c Compare January 16, 2024 09:42
Copy link

sonarcloud bot commented Jan 16, 2024

@tjementum tjementum force-pushed the 294-configure-antiforgery-in-webapp branch from d46a964 to 0dcc784 Compare January 16, 2024 13:15
@raix raix closed this Jan 16, 2024
@raix raix deleted the 294-configure-antiforgery-in-webapp branch January 16, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configure Antiforgery in WebApp
2 participants