password

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 New

func New(cfg *common.DatabaseConfig) (*Provider, error)

func (Provider) GetName

func (Provider) GetName() string

GetName return provider name

func (Provider) GetPriority

func (Provider) GetPriority() int

GetPriority return provider priority

func (Provider) GetType

GetType return provider type

func (Provider) GetUserModel

func (provider Provider) GetUserModel(ctx *authentication.AuthContext) (*authentication.User, error)

func (Provider) InitializeAdmin

func (provider Provider) InitializeAdmin(email, password string) error

func (Provider) Login

func (provider Provider) Login(ctx *authentication.AuthContext) (string, error)

func (Provider) Logout

func (provider Provider) Logout(_ *authentication.AuthContext) error

func (Provider) SetupRoutes

func (provider Provider) SetupRoutes(_ *gin.RouterGroup)

Jump to

Keyboard shortcuts

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