Skip to content

Bugfix and package upgrades#29

Open
megakevin wants to merge 4 commits intomainfrom
bugfix/handle-data-protection-key-loss-for-antiforgery
Open

Bugfix and package upgrades#29
megakevin wants to merge 4 commits intomainfrom
bugfix/handle-data-protection-key-loss-for-antiforgery

Conversation

@megakevin
Copy link
Copy Markdown
Contributor

  • Handle anti forgery token decryption failures after data protection key loss.
  • Upgrade nuget packages.
  • Upgrade xunit.

Kevin Campusano added 3 commits March 9, 2026 20:43
…y loss.

Add middleware to catch AntiforgeryValidationException, clear the stale antiforgery cookie, and redirect so the user automatically gets a fresh token. This prevents users from being locked out of the login page when data protection keys are lost.

Also configure an explicit antiforgery cookie name to ensure the middleware can reliably identify and delete the correct cookie.

Re-add antiforgery protection to the login form.
Disable xUnit1051 warning which are about passing cancellation tokens to the async method calls within tests.
@megakevin megakevin self-assigned this Mar 9, 2026
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