Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

AuthorizeFilter prevents unauthenticated requests to be handled by IAuthorizationService #4287

Closed
@malekpour

Description

@malekpour

Current implementation of AuthorizeFilter only calls IAuthorizationService.AuthorizeAsync when request is authenticated.

https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.Core/Internal/AuthorizeFilter.cs#L78

I think DenyAnonymousAuthorizationRequirement should be used instead, otherwise there is no way to use authorization requirements without being authenticated.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions