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() SetAuthenticator(IAuthenticator) RefreshToken() error GetRoleValidatorHandler() middleware.Middleware GetTokenExpiredHandler() middleware.Middleware }
func NewRoleValidatorService ¶ added in v1.1.8
func NewRoleValidatorService(authenConnection *g_grpc.ClientConn, errEncoder error_encoder.IErrorEncoderService, userinfo IUserinfo, publicKey string, accessTimeout time.Duration, refreshTimeout time.Duration, logger log.Logger) IRoleValidatorService
type ISignInData ¶
Click to show internal directories.
Click to hide internal directories.