Skip to content

About RestrictingForAuthorizedRequests() method #406

@MartinPetrovIT

Description

@MartinPetrovIT

Describe your issue
RestrictingForAuthorizedRequests() does not work if [Authorize] attribute is of the whole controller

Additional context
This is the error message:
When calling RandomAction action in RandomController expected action to have at least 1 attribute, but in fact none was found.

I'm not sure if this is a real bug or I'm making something wrong, but when I positioned attribute over action the test passed.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions