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

OMERO.web: improve the CSRF tests coverage #6419

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

sbesson
Copy link
Member

@sbesson sbesson commented Feb 15, 2025

Expand the scope of the integration tests to match the response message changes proposed ome/omero-web#608 and cover additional CSRF protection scenarios

  • Update the expected response message to include the reason
  • Add integration tests including missing CSRF cookie, missing CSRF token, CSRF token with invalid length and CSRF token with incorrect value

Update the expected response message to include the reason
Add a second integration test with a X-CSRFToken with empty value
@sbesson sbesson force-pushed the csrf_token_failure_message branch from dde4189 to 410c732 Compare February 15, 2025 13:22
Test empty and invalid CRSF token scenarios
@sbesson sbesson changed the title Fix failing CSRF login integration test Expand CSRF integration tests Feb 16, 2025
Add test for missing CSRF cookie, empty and invalid CSRF tokens
@sbesson sbesson force-pushed the csrf_token_failure_message branch from 265dd48 to f315a50 Compare February 17, 2025 20:51
@sbesson sbesson changed the title Expand CSRF integration tests OMERO.web: improve the CSRF tests coverage Feb 17, 2025
@sbesson sbesson requested a review from knabar February 18, 2025 09:30
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

Successfully merging this pull request may close these issues.

2 participants