authnimpl

package
v0.0.0-cloud Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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,
	anonSessionService 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,
) authn.Service

Types

type Service

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

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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