Skip to content

Add suffix authentication checks and allowAnonymous option#338

Merged
SimonCropp merged 2 commits intomainfrom
Add-suffix-authentication-checks-and-allowAnonymous-option
Feb 3, 2026
Merged

Add suffix authentication checks and allowAnonymous option#338
SimonCropp merged 2 commits intomainfrom
Add-suffix-authentication-checks-and-allowAnonymous-option

Conversation

@SimonCropp
Copy link
Owner

Introduces a check that throws an InvalidOperationException if a suffix callback is provided and the user is not authenticated, unless allowAnonymous is set to true. Adds the allowAnonymous parameter to all UseDelta overloads, updates documentation and usage examples to explain correct middleware ordering and anonymous scenarios, and adds tests for suffix/authentication behavior.

Introduces a check that throws an InvalidOperationException if a suffix callback is provided and the user is not authenticated, unless allowAnonymous is set to true. Adds the allowAnonymous parameter to all UseDelta overloads, updates documentation and usage examples to explain correct middleware ordering and anonymous scenarios, and adds tests for suffix/authentication behavior.
@SimonCropp SimonCropp added this to the 8.0.0 milestone Feb 3, 2026
@SimonCropp SimonCropp merged commit d26b3ee into main Feb 3, 2026
3 of 4 checks passed
@SimonCropp SimonCropp deleted the Add-suffix-authentication-checks-and-allowAnonymous-option branch February 3, 2026 01:45
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.

1 participant