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 ¶
func (s *Service) Login(credentials *authEntities.LoginCredentials) (*authEntities.LoginResponse, error)
Click to show internal directories.
Click to hide internal directories.