filters

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AuthenticationFilterName string = "Authentication"
)
View Source
const (
	AuthorizationFilterName string = "Authorization"
)
View Source
const RequiredAuthenticationFilterName = "RequiredAuthenticationFilter"

RequiredAuthenticationFilterName is the name of RequiredAuthenticationFilter

View Source
const RequiredAuthorizationFilterName = "RequiredAuthorizationFilter"

RequiredAuthorizationFilterName is the name of RequiredAuthorizationFilter

Variables

This section is empty.

Functions

func NewRequiredAuthnFilter

func NewRequiredAuthnFilter(matchers []web.FilterMatcher) web.Filter

NewRequiredAuthnFilter returns web.Filter

func NewRequiredAuthzFilter

func NewRequiredAuthzFilter(matchers []web.FilterMatcher) web.Filter

NewRequiredAuthzFilter returns web.Filter which requires at least one authorization flows to be successful

Types

type AuthenticationFilter added in v0.3.3

type AuthenticationFilter struct {
	*middlewares.Authentication
	// contains filtered or unexported fields
}

func NewAuthenticationFilter added in v0.3.3

func NewAuthenticationFilter(authenticator http.Authenticator, name string, matchers []web.FilterMatcher) *AuthenticationFilter

func (*AuthenticationFilter) FilterMatchers added in v0.3.3

func (af *AuthenticationFilter) FilterMatchers() []web.FilterMatcher

func (*AuthenticationFilter) Name added in v0.3.3

func (af *AuthenticationFilter) Name() string

type AuthorizationFilter added in v0.9.7

type AuthorizationFilter struct {
	*middlewares.Authorization
	// contains filtered or unexported fields
}

func NewAuthzFilter added in v0.9.7

func NewAuthzFilter(authorizer http.Authorizer, name string, matchers []web.FilterMatcher) *AuthorizationFilter

NewAuthzFilter returns a web.Filter for a specific scope and endpoint

func (*AuthorizationFilter) FilterMatchers added in v0.9.7

func (af *AuthorizationFilter) FilterMatchers() []web.FilterMatcher

FilterMatchers implements the web.Filter interface and returns the conditions on which the filter should be executed

func (*AuthorizationFilter) Name added in v0.9.7

func (af *AuthorizationFilter) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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