v1beta

package
v0.0.0-...-b7982b2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TTL_IN_SECONDS_KEY   = "ttlInSeconds"
	STORAGE_KEY_TEMPLATE = "state:store:%s:%s"
)
View Source
const (
	LOGIN_PROVIDER_FORM_PASSWORD = models.LOGIN_PROVIDER_FORM_PASSWORD
	LOGIN_PROVIDER_SMS_OTP_CODE  = models.LOGIN_PROVIDER_SMS_OTP_CODE
)
View Source
const (
	REALM_ADMIN = "admin"
)

Variables

This section is empty.

Functions

func NewStateStoreServiceServer

func NewStateStoreServiceServer(rdb rueidis.Client) state.StateStoreServiceServer

func NewUsersServiceServer

func NewUsersServiceServer(bdb bun.IDB) iam.UsersServiceServer

Types

type FormPasswordLoginProvider

type FormPasswordLoginProvider struct {
	// contains filtered or unexported fields
}

func (*FormPasswordLoginProvider) Login

func (p *FormPasswordLoginProvider) Login(ctx context.Context, realmId, username, password, idToken string, scope []string) (*models.Login, error)

func (*FormPasswordLoginProvider) Name

func (*FormPasswordLoginProvider) Validate

type LoginProvider

type LoginProvider interface {
	Name() string
	Login(ctx context.Context, realm, username, password, idToken string, scope []string) (*models.Login, error)
}

func NewFormPasswordLoginProvider

func NewFormPasswordLoginProvider(bdb bun.IDB) LoginProvider

func NewSMSOTPCodeLoginProvider

func NewSMSOTPCodeLoginProvider() LoginProvider

type SMSOTPCodeLoginProvider

type SMSOTPCodeLoginProvider struct{}

func (*SMSOTPCodeLoginProvider) Login

func (p *SMSOTPCodeLoginProvider) Login(ctx context.Context, realmId, username, password, idToken string, scope []string) (*models.Login, error)

func (*SMSOTPCodeLoginProvider) Name

func (p *SMSOTPCodeLoginProvider) Name() string

Jump to

Keyboard shortcuts

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