Skip to main content

authorize

No description

directive @authorize(
policy: String
roles: [String!]
apply: ApplyPolicy! = BEFORE_RESOLVER
) on
| OBJECT
| FIELD_DEFINITION

Arguments

authorize.policy ● String scalar

The name of the authorization policy that determines access to the annotated resource.

authorize.roles ● [String!] list scalar

Roles that are allowed to access the annotated resource.

authorize.apply ● ApplyPolicy! non-null enum

Defines when when the authorize directive shall be applied.By default the authorize directives are applied during the validation phase.