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

Bug/Documentation missing on how to test Queries with the Authorize attribute. #59

Open
batista16 opened this issue Aug 9, 2023 · 0 comments

Comments

@batista16
Copy link

Hi, Using the misc/Testing2 demo as a reproduction project, if I alter line 9 of Author.cs to a simple [Authorize], instead of the policy-based authorization, then the test fails.

This feels like a bug, since the test is providing a state with a user with an admin role, so it should pass a simple [Authorize] attribute.
I could be as well that something else is missing in the test setup to make the authorize work, but since the policy based authorization is working, I would think that a less complex authorize would work.

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

No branches or pull requests

1 participant