Skip to content

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

@batista16

Description

@batista16

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions