Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About RestrictingForAuthorizedRequests() method #406

Open
MartinPetrovIT opened this issue Mar 15, 2022 · 0 comments
Open

About RestrictingForAuthorizedRequests() method #406

MartinPetrovIT opened this issue Mar 15, 2022 · 0 comments
Assignees
Labels

Comments

@MartinPetrovIT
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants