authenticationmgr

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	APISecretAuthenticator authentication.APISecretAuthenticator
	UserAuthenticator      authentication.UserAuthenticator
	// contains filtered or unexported fields
}

func NewManager

func NewManager(repo repositories.ProjectRepository, providerManager *providersmgr.Manager, userService services.UserService) *Manager

func (*Manager) GetAPISecretAuthenticator

func (m *Manager) GetAPISecretAuthenticator() authentication.APISecretAuthenticator

func (*Manager) GetAuthProvider

func (m *Manager) GetAuthProvider(providerStr string) (provider.Type, error)

func (*Manager) GetUserAuthenticator

func (m *Manager) GetUserAuthenticator() authentication.UserAuthenticator

func (*Manager) IsAllowedOrigin

func (m *Manager) IsAllowedOrigin(ctx context.Context, apiKey string, origin string) (bool, error)

func (*Manager) PreRegisterUser added in v0.1.9

func (m *Manager) PreRegisterUser(ctx context.Context, userID string, providerType provider.Type) (string, error)

Jump to

Keyboard shortcuts

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