-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcseQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.security/subsvc
Description
Description
There's a note:
If you combine [AllowAnonymous] and an [Authorize] attribute, the [Authorize] attributes are ignored.
This is not completely true, and below you provide an indirect proof:
Authentication middleware is not short-circuited but doesn't need to succeed.
It's worth explicitly saying, that schemes specified in AuthenticationSchemes property of [Authorize] attribute will be used for authentication.
Page URL
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authorization/simple.md
Document ID
cea5942d-fb01-f5bf-3b63-25873d5b79cf
Article author
Metadata
Metadata
Assignees
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcseQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.security/subsvc