authnimpl

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func ProvideService

func ProvideService(
	cfg *setting.Cfg, tracer tracing.Tracer,
	orgService org.Service, sessionService auth.UserTokenService,
	accessControlService accesscontrol.Service,
	apikeyService apikey.Service, userService user.Service,
	jwtService auth.JWTVerifierService,
	usageStats usagestats.Service,
	anonDeviceService anonymous.Service,
	userProtectionService login.UserProtectionService,
	loginAttempts loginattempt.Service, quotaService quota.Service,
	authInfoService login.AuthInfoService, renderService rendering.Service,
	features *featuremgmt.FeatureManager, oauthTokenService oauthtoken.OAuthTokenService,
	socialService social.Service, cache *remotecache.RemoteCache,
	ldapService service.LDAP, registerer prometheus.Registerer,
	signingKeysService signingkeys.Service, oauthServer oauthserver.OAuth2Server,
) *Service

func (*Service) Authenticate

func (s *Service) Authenticate(ctx context.Context, r *authn.Request) (*authn.Identity, error)

func (*Service) Login

func (s *Service) Login(ctx context.Context, client string, r *authn.Request) (identity *authn.Identity, err error)

func (*Service) RedirectURL

func (s *Service) RedirectURL(ctx context.Context, client string, r *authn.Request) (*authn.Redirect, error)

func (*Service) RegisterClient

func (s *Service) RegisterClient(c authn.Client)

func (*Service) RegisterPostAuthHook

func (s *Service) RegisterPostAuthHook(hook authn.PostAuthHookFn, priority uint)

func (*Service) RegisterPostLoginHook

func (s *Service) RegisterPostLoginHook(hook authn.PostLoginHookFn, priority uint)

func (*Service) SyncIdentity

func (s *Service) SyncIdentity(ctx context.Context, identity *authn.Identity) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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