authenticator

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticatorService

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

func (*AuthenticatorService) InternalServiceRefreshToken added in v1.1.9

func (s *AuthenticatorService) InternalServiceRefreshToken(tokenID string, refreshToken string) (IAccessToken, error)

func (*AuthenticatorService) InternalServiceSignIn added in v1.1.9

func (s *AuthenticatorService) InternalServiceSignIn(username string, password string) (ISignInData, error)

func (*AuthenticatorService) LogError

func (s *AuthenticatorService) LogError(err error)

type IAccessToken

type IAccessToken interface {
	GetAccessToken() string
}

type IAuthenticator

type IAuthenticator interface {
	InternalServiceSignIn(string, string) (ISignInData, error)
	InternalServiceRefreshToken(string, string) (IAccessToken, error)
	LogError(error)
}

type IRoleValidatorService added in v1.0.7

type IRoleValidatorService interface {
	GetRoleValidatorService()
	RefreshToken() error
	GetRoleValidatorHandler() middleware.Middleware
	GetTokenExpiredHandler() middleware.Middleware
}

func NewRoleValidatorService added in v1.1.8

func NewRoleValidatorService(authen IAuthenticator, authConnection *g_grpc.ClientConn, errEncoder error_encoder.IErrorEncoderService, userinfo IUserinfo, publicKey string, accessTimeout time.Duration, refreshTimeout time.Duration, logger log.Logger) IRoleValidatorService

type ISignInData

type ISignInData interface {
	GetAccessToken() string
	GetTokenId() string
	GetRefreshToken() string
}

type IUserinfo

type IUserinfo interface {
	GetUsername() string
	GetPassword() string
}

Jump to

Keyboard shortcuts

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