security

package
v0.0.0-...-85aee89 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidToken for auth
	ErrInvalidToken = errors.ErrInvalidToken
	// ErrExpiredToken for auth
	ErrExpiredToken = errors.ErrExpiredToken
)

Functions

This section is empty.

Types

type AuthorizationServerConfigurer

type AuthorizationServerConfigurer interface {
	WebSecurityConfigurer
	Authorization()
}

AuthorizationServerConfigurer 授权服务器配置

type HTTPSecurityBuilder

type HTTPSecurityBuilder interface {
	Build() (securityFilter.SecurityFilterChain, error)
	RequestMatcher(utils.RequestMatcher)
	AddFilter(filter.Filter)
	Apply(HTTPSecurityConfigurer)
}

HTTPSecurityBuilder 构造器

type HTTPSecurityConfigurer

type HTTPSecurityConfigurer interface {
	HTTPConfigure(HTTPSecurityBuilder) error
}

HTTPSecurityConfigurer HTTP security 配置

type ResourceServerConfigurer

type ResourceServerConfigurer interface {
	WebSecurityConfigurer
	Resource()
}

ResourceServerConfigurer 资源服务器配置

type WebSecurityBuilder

type WebSecurityBuilder interface {
	Build() (filter.Filter, error)
	AddSecurityFilterChainBuilder(HTTPSecurityBuilder)
	AddIgnoreRequestMatcher(utils.RequestMatcher)
	Apply(WebSecurityConfigurer)
}

WebSecurityBuilder 构造器

type WebSecurityConfigurer

type WebSecurityConfigurer interface {
	WebConfigure(WebSecurityBuilder) error
}

WebSecurityConfigurer Web security 配置

type WebSecurityConfigurers

type WebSecurityConfigurers interface {
	Add(WebSecurityConfigurer)
	// 获取所有 WebSecurityConfigurer
	Get() []WebSecurityConfigurer
}

WebSecurityConfigurers 定义 Web Security 配置列表接口

Jump to

Keyboard shortcuts

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