ldap

package
v0.0.0-...-46e61fc Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IService

type IService interface {
	Login(credentials *authEntities.LoginCredentials) (*authEntities.LoginResponse, error)
	IsAuthorized(data *authEntities.AuthorizationData) (bool, error)
	GetAccountDataFromToken(token string) (*proto.GetAccountDataResponse, error)
}

func NewLDAPAuthenticationService

func NewLDAPAuthenticationService(repositoryAccount accountRepository.IRepository, useCasesAuth authUseCases.IUseCases,
	appConfig app.IConfig, repositoryAuth authRepository.IRepository, cacheLib cache.ICache) IService

type Service

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

func (*Service) GetAccountDataFromToken

func (s *Service) GetAccountDataFromToken(token string) (*proto.GetAccountDataResponse, error)

func (*Service) IsAuthorized

func (s *Service) IsAuthorized(data *authEntities.AuthorizationData) (bool, error)

func (*Service) Login

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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