This interface is define the structure of a PermissionDefinition array for permission structure V2..

Hierarchy

  • PermissionDefinition

Properties

gqlOptions?: {
    anonymousGqlOperations?: string[];
    ignoredGqlOperations?: string[];
}

Type declaration

  • Optional anonymousGqlOperations?: string[]

    Any operations defined under ANONYMOUS will be ignored while checking for Authorization.

  • Optional ignoredGqlOperations?: string[]

    Any operations defined under IGNORE will not be logged as disabled operations as they are known to be intentionally removed.

permissions: readonly Permission[]

Map of service specific permissions. This is a permission array. This is specially useful in authorizing REST APIs where a route could be authorized if an access-token contains a specific permission, but there is no real need for mapping any GraphQL operations to that permission.

Generated using TypeDoc