Skip to content

Graphql Authorization via application properties #27355

Open

Description

@sberyozkin @phillip-kruger
For rest APIs we have option to add authorization based on endpoints.
Screenshot 2022-08-18 at 2 46 45 PM
https://quarkus.io/guides/security-authorization
How can we have something similar for graphql endpoints. Currently the only option is to add @RolesAllowed annotation on top of the graphql APIs.

For example i have 2 query and 2 mutations for Case and Audit and i need Case to be accessible if role is CaseUser and Audit role is for AuditUser.
how to specify this in application.properties similar to rest apis configuration for security.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions