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
Click to show internal directories.
Click to hide internal directories.