Documentation
¶
Index ¶
- type PrincipalServiceImpl
- type Service
- func (l *Service) GetApiJWTInfo(apiKeyEntryData model.ApiKeyEntryData, ...) (model.Entry, error)
- func (l *Service) Login(user login.User) (*goservectx.DefaultContext, error)
- func (l *Service) OnGenerated(data model2.Response, jwtEntry model.Entry, ...)
- func (l *Service) RequiredScopes() []string
- func (l *Service) SecurityService() security.Service[*goservectx.DefaultContext]
- func (l *Service) TokenDuration() time.Duration
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 ¶
func (d *PrincipalServiceImpl) LoadPrincipal(ctx *goservectx.Request[*goservectx.DefaultContext]) bool
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 (*Service) SecurityService ¶
func (l *Service) SecurityService() security.Service[*goservectx.DefaultContext]
func (*Service) TokenDuration ¶
Click to show internal directories.
Click to hide internal directories.