Axinom Mosaic Libraries
    Preparing search index...

    Interface PermissionDefinition

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

    interface PermissionDefinition {
        gqlOptions?: {
            anonymousGqlOperations?: string[];
            ignoredGqlOperations?: string[];
        };
        permissions: readonly Permission[];
    }
    Index

    Properties

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

    Type Declaration

    • OptionalanonymousGqlOperations?: string[]

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

    • OptionalignoredGqlOperations?: 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.