Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationProvider ¶
type AuthenticationProvider struct {
*dao.AuthenticationProvider
}
AuthenticationProvider basic
func NewProvider ¶
func NewProvider(encoder password.Encoder, service clientdetails.Service, cache userdetails.UserCache, preChecker userdetails.PreChecker, postChecker userdetails.PostChecker) *AuthenticationProvider
NewProvider 实例化
func (*AuthenticationProvider) Authenticate ¶
func (p *AuthenticationProvider) Authenticate(auth core.Authentication) (core.Authentication, error)
Authenticate 身份验证
func (*AuthenticationProvider) Supports ¶
func (p *AuthenticationProvider) Supports(auth interface{}) bool
Supports 该身份验证提供者是否支持指定的认证信息
Click to show internal directories.
Click to hide internal directories.