Skip to content

Bypass (ignore) AuthorizeAttribute when Authorization is disabled #23564

Answered by Tratcher
bpaczkowski asked this question in General
Discussion options

You must be logged in to vote

This check prevents a serious issue of people accidentally disabling security checks in production.

If you're altering startup for tests, consider setting the default authorization policy to one that does not require authenticated users.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bpaczkowski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants