btcpayserver-plugin-builder/PluginBuilder.Tests/PublicTests
Khushvendra Singh e0c8972366
Align antiforgery error details flow with BTCPay UI handling (#196) (#197)
* Align antiforgery error details flow with BTCPay UI handling (#196)

- add UIControllerAntiforgeryTokenAttribute equivalent and register it globally in MVC\n- populate UIErrorController.ErrorDetailsKey on antiforgery validation failures\n- keep UI-only/non-safe-method antiforgery behavior aligned with BTCPay policy semantics\n- add focused unit tests for validation, existing failure enrichment, GET bypass, API bypass, and IgnoreAntiforgeryToken bypass\n- add integration-style error page test to verify generic UI error view renders CSRF details

* Align antiforgery policy precedence for UI error handling

* Fix antiforgery error details and exempt NIP-07 verify endpoint

* Preserve detailed antiforgery error messages

* Keep antiforgery PR focused

* fix: keep antiforgery details generic

* test: focus antiforgery coverage

---------

Co-authored-by: thgO.O <thgo.o.btc@proton.me>
2026-05-08 18:40:12 -03:00
..
ErrorPageTests.cs Align antiforgery error details flow with BTCPay UI handling (#196) (#197) 2026-05-08 18:40:12 -03:00
PluginDetailsUITests.cs chore: remove redundant explicit usings (issue #182) 2026-03-27 13:26:33 +05:30
PublicDirectoryUITests.cs Merge pull request #183 from btcpayserver/fix/review-userid-cleanup 2026-03-28 22:15:33 +01:00
RateLimitTests.cs Fix flaky rate limit window test 2026-04-21 14:43:13 -03:00