password

package
v1.0.55 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RootAuth

type RootAuth struct {
	Enabled bool           //starter:inject("${security.auth-as-root.enabled}")
	Random  random.Service //starter:inject("#")
	// contains filtered or unexported fields
}

RootAuth 提供 username(root)+password(随机生成) 的验证机制

func (*RootAuth) Authenticate

func (inst *RootAuth) Authenticate(a auth.Authentication) ([]auth.Identity, error)

Authenticate ...

func (*RootAuth) Life

func (inst *RootAuth) Life() *application.Life

Life ...

func (*RootAuth) ListRegistrations

func (inst *RootAuth) ListRegistrations() []*auth.Registration

ListRegistrations ...

func (*RootAuth) Support

func (inst *RootAuth) Support(r1 auth.Request) bool

Support ...

type UsersAuth

type UsersAuth struct {
	Enabled bool                 //starter:inject("${security.auth-as-root.enabled}")
	Random  random.Service       //starter:inject("#")
	UserDao rbacdb.UserDAO       //starter:inject("#")
	UserCvt rbacdb.UserConvertor //starter:inject("#")
	// contains filtered or unexported fields
}

UsersAuth 提供 username+password 的验证机制

func (*UsersAuth) Authenticate

func (inst *UsersAuth) Authenticate(a1 auth.Authentication) ([]auth.Identity, error)

Authenticate ...

func (*UsersAuth) Life

func (inst *UsersAuth) Life() *application.Life

Life ...

func (*UsersAuth) ListRegistrations

func (inst *UsersAuth) ListRegistrations() []*auth.Registration

ListRegistrations ...

func (*UsersAuth) Support

func (inst *UsersAuth) Support(r1 auth.Request) bool

Support ...

Jump to

Keyboard shortcuts

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