authentication

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUseCases

type IUseCases interface {
	CheckLoginData(credentials *authEntities.LoginCredentials, account *accountEntities.Account) error
	LoginCredentialsFromIOReadCloser(body io.ReadCloser) (*authEntities.LoginCredentials, error)
	SetLdapAccountData(userData map[string]string) *accountEntities.Account
	FilterWorkspaceByID(workspaceID uuid.UUID) map[string]interface{}
	FilterRepositoryByID(repository uuid.UUID) map[string]interface{}
	FilterAccountWorkspaceByID(accountID, workspaceID uuid.UUID) map[string]interface{}
	FilterAccountRepositoryByID(accountID, repository uuid.UUID) map[string]interface{}
	NewAuthorizationDataFromGrpcData(data *proto.IsAuthorizedData) *authEntities.AuthorizationData
	NewIsAuthorizedResponse(isAuthorized bool) *proto.IsAuthorizedResponse
}

func NewAuthenticationUseCases

func NewAuthenticationUseCases() IUseCases

type UseCases

type UseCases struct {
}

func (*UseCases) CheckLoginData

func (u *UseCases) CheckLoginData(credentials *authEntities.LoginCredentials, account *accountEntities.Account) error

func (*UseCases) FilterAccountRepositoryByID

func (u *UseCases) FilterAccountRepositoryByID(accountID, repository uuid.UUID) map[string]interface{}

func (*UseCases) FilterAccountWorkspaceByID

func (u *UseCases) FilterAccountWorkspaceByID(accountID, workspaceID uuid.UUID) map[string]interface{}

func (*UseCases) FilterRepositoryByID

func (u *UseCases) FilterRepositoryByID(repository uuid.UUID) map[string]interface{}

func (*UseCases) FilterWorkspaceByID

func (u *UseCases) FilterWorkspaceByID(workspaceID uuid.UUID) map[string]interface{}

func (*UseCases) LoginCredentialsFromIOReadCloser

func (u *UseCases) LoginCredentialsFromIOReadCloser(body io.ReadCloser) (*authEntities.LoginCredentials, error)

func (*UseCases) NewAuthorizationDataFromGrpcData

func (u *UseCases) NewAuthorizationDataFromGrpcData(data *proto.IsAuthorizedData) *authEntities.AuthorizationData

func (*UseCases) NewIsAuthorizedResponse

func (u *UseCases) NewIsAuthorizedResponse(isAuthorized bool) *proto.IsAuthorizedResponse

func (*UseCases) SetLdapAccountData

func (u *UseCases) SetLdapAccountData(userData map[string]string) *accountEntities.Account

Jump to

Keyboard shortcuts

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