Documentation ¶
Index ¶
- type Provider
- func (Provider) GetName() string
- func (Provider) GetPriority() int
- func (Provider) GetType() authentication.AuthProviderType
- func (provider Provider) GetUserModel(ctx *authentication.AuthContext) (*authentication.User, error)
- func (provider Provider) InitializeAdmin(email, password string) error
- func (provider Provider) Login(ctx *authentication.AuthContext) (string, error)
- func (provider Provider) Logout(context *authentication.AuthContext) error
- func (provider Provider) SetupRoutes(routes *gin.RouterGroup)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements a password login method for a database backend.
func (Provider) GetPriority ¶
GetPriority return provider priority
func (Provider) GetType ¶
func (Provider) GetType() authentication.AuthProviderType
GetType return provider type
func (Provider) GetUserModel ¶
func (provider Provider) GetUserModel(ctx *authentication.AuthContext) (*authentication.User, error)
func (Provider) InitializeAdmin ¶
func (Provider) Login ¶
func (provider Provider) Login(ctx *authentication.AuthContext) (string, error)
func (Provider) Logout ¶
func (provider Provider) Logout(context *authentication.AuthContext) error
func (Provider) SetupRoutes ¶
func (provider Provider) SetupRoutes(routes *gin.RouterGroup)
Click to show internal directories.
Click to hide internal directories.