pkg

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationUtils

type AuthorizationUtils struct {
	Hosts map[string]HostSettings `json:"hostSettings"`
}

func NewAuthorizationUtils

func NewAuthorizationUtils(hosts map[string]HostSettings) (*AuthorizationUtils, error)

func (*AuthorizationUtils) ShouldIgnoreRequest

func (a *AuthorizationUtils) ShouldIgnoreRequest(request *v3.CheckRequest) bool

type HostSettings

type HostSettings struct {
	AllowOptionsRequests       bool           `json:"allowOptionsRequests"`
	IgnorePaths                []string       `json:"ignorePaths"`
	IgnoreUrlPaths             []urlpath.Path `json:"-"`
	IgnoreGraphqlOperations    []string       `json:"ignoreGraphqlOperations"`
	IgnoreGraphqlOperationsSet *hashset.Set   `json:"-"`
}

func (*HostSettings) UnmarshalJSON

func (h *HostSettings) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL