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 配置列表接口
Click to show internal directories.
Click to hide internal directories.