Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProviderManager ¶
type AuthProviderManager struct {
// contains filtered or unexported fields
}
func NewAuthProviderManager ¶
func NewAuthProviderManager() *AuthProviderManager
func (*AuthProviderManager) AddProvider ¶
func (thiz *AuthProviderManager) AddProvider(provider IAuthenticationProvider)
func (AuthProviderManager) Authenticate ¶
func (thiz AuthProviderManager) Authenticate(ctx *gin.Context, authentication *SecurityModel.Authentication) (*SecurityModel.Authentication, error)
type IAuthenticationManager ¶
type IAuthenticationManager interface {
Authenticate(ctx *gin.Context, authentication *SecurityModel.Authentication) (*SecurityModel.Authentication, error)
}
type IAuthenticationProvider ¶
type IAuthenticationProvider interface { GetAuthMethod() string // 认证登录信息信息,传待认证的信息。认证成功后,authentication.Authenticated会设置成true,并authentication.Principal填入User信息 Authenticate(ctx *gin.Context, authentication *SecurityModel.Authentication) (*SecurityModel.Authentication, error) }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.