auth

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDummyAuthService

func NewDummyAuthService(repo storage.UserRepository) service.AuthService

Types

type AuthDummyService

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

AuthDummyService is used to disable the auth service by configuration

func (*AuthDummyService) ClientTokenCallback

func (s *AuthDummyService) ClientTokenCallback(_ context.Context, _ *entities.LoginCallback) (*entities.ClientToken, error)

func (*AuthDummyService) GetAll

func (s *AuthDummyService) GetAll(ctx context.Context) ([]*entities.User, error)

func (*AuthDummyService) GetAllByRole

func (s *AuthDummyService) GetAllByRole(ctx context.Context, role entities.UserRole) ([]*entities.User, error)

func (*AuthDummyService) GetByIDs

func (s *AuthDummyService) GetByIDs(ctx context.Context, ids []string) ([]*entities.User, error)

func (*AuthDummyService) LoginRequest

func (s *AuthDummyService) LoginRequest(ctx context.Context, loginRequest *entities.LoginRequest) *entities.LoginResp

func (*AuthDummyService) LogoutRequest

func (s *AuthDummyService) LogoutRequest(_ context.Context, _ *entities.Logout) error

func (*AuthDummyService) Ready

func (s *AuthDummyService) Ready() bool

func (*AuthDummyService) RefreshToken

func (s *AuthDummyService) RefreshToken(_ context.Context, _ string) (*entities.ClientToken, error)

func (*AuthDummyService) Register

func (*AuthDummyService) RetrospectToken

type AuthService

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

func (*AuthService) ClientTokenCallback

func (s *AuthService) ClientTokenCallback(ctx context.Context, loginCallback *domain.LoginCallback) (*domain.ClientToken, error)

func (*AuthService) GetAll

func (s *AuthService) GetAll(ctx context.Context) ([]*domain.User, error)

func (*AuthService) GetAllByRole

func (s *AuthService) GetAllByRole(ctx context.Context, role domain.UserRole) ([]*domain.User, error)

func (*AuthService) GetByIDs

func (s *AuthService) GetByIDs(ctx context.Context, ids []string) ([]*domain.User, error)

func (*AuthService) LoginRequest

func (s *AuthService) LoginRequest(ctx context.Context, loginRequest *domain.LoginRequest) *domain.LoginResp

func (*AuthService) LogoutRequest

func (s *AuthService) LogoutRequest(ctx context.Context, logoutRequest *domain.Logout) error

func (*AuthService) Ready

func (s *AuthService) Ready() bool

func (*AuthService) RefreshToken

func (s *AuthService) RefreshToken(ctx context.Context, token string) (*domain.ClientToken, error)

func (*AuthService) Register

func (s *AuthService) Register(ctx context.Context, user *domain.RegisterUser) (*domain.User, error)

func (*AuthService) RetrospectToken

func (s *AuthService) RetrospectToken(ctx context.Context, token string) (*domain.IntroSpectTokenResult, error)

Jump to

Keyboard shortcuts

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