login

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrincipalServiceImpl

type PrincipalServiceImpl struct {
}

func NewPrincipalService

func NewPrincipalService() *PrincipalServiceImpl

func (*PrincipalServiceImpl) LoadPrincipal

type Service

type Service struct {
	login.DefaultPasswordValidator[*goservectx.DefaultContext]
	// contains filtered or unexported fields
}

func NewLoginService

func NewLoginService(
	service security.Service[*goservectx.DefaultContext],
) *Service

func (*Service) GetApiJWTInfo

func (l *Service) GetApiJWTInfo(apiKeyEntryData model.ApiKeyEntryData,
	_ *goservectx.Request[*goservectx.DefaultContext],
) (model.Entry, error)

func (*Service) Login

func (l *Service) Login(user login.User) (*goservectx.DefaultContext, error)

func (*Service) OnGenerated

func (l *Service) OnGenerated(data model2.Response,
	jwtEntry model.Entry,
	ctx goservectx.SampleContext[*goservectx.DefaultContext],
)

func (*Service) RequiredScopes

func (l *Service) RequiredScopes() []string

func (*Service) SecurityService

func (l *Service) SecurityService() security.Service[*goservectx.DefaultContext]

func (*Service) TokenDuration

func (l *Service) TokenDuration() time.Duration

Jump to

Keyboard shortcuts

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