Documentation ¶
Index ¶
- type APIKey
- func (s *APIKey) Authenticate(ctx context.Context, r *authn.Request) (*authn.Identity, error)
- func (s *APIKey) Hook(ctx context.Context, identity *authn.Identity, r *authn.Request) error
- func (s *APIKey) Name() string
- func (s *APIKey) Priority() uint
- func (s *APIKey) Test(ctx context.Context, r *authn.Request) bool
- type Anonymous
- func (a *Anonymous) Authenticate(ctx context.Context, r *authn.Request) (*authn.Identity, error)
- func (a *Anonymous) Name() string
- func (a *Anonymous) Priority() uint
- func (a *Anonymous) Test(ctx context.Context, r *authn.Request) bool
- func (a *Anonymous) UsageStatFn(ctx context.Context) (map[string]interface{}, error)
- type Basic
- type ExtendedJWT
- type ExtendedJWTClaims
- type Form
- type Grafana
- type JWT
- type LDAP
- type OAuth
- type Password
- type Proxy
- func (c *Proxy) Authenticate(ctx context.Context, r *authn.Request) (*authn.Identity, error)
- func (c *Proxy) Hook(ctx context.Context, identity *authn.Identity, r *authn.Request) error
- func (c *Proxy) Name() string
- func (c *Proxy) Priority() uint
- func (c *Proxy) Test(ctx context.Context, r *authn.Request) bool
- type Render
- type Session
- func (s *Session) Authenticate(ctx context.Context, r *authn.Request) (*authn.Identity, error)
- func (s *Session) Hook(ctx context.Context, identity *authn.Identity, r *authn.Request) error
- func (s *Session) Name() string
- func (s *Session) Priority() uint
- func (s *Session) Test(ctx context.Context, r *authn.Request) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct {
// contains filtered or unexported fields
}
func ProvideAPIKey ¶
func (*APIKey) Authenticate ¶
type Anonymous ¶
type Anonymous struct {
// contains filtered or unexported fields
}
func ProvideAnonymous ¶
func (*Anonymous) Authenticate ¶
type Basic ¶
type Basic struct {
// contains filtered or unexported fields
}
func ProvideBasic ¶
func ProvideBasic(client authn.PasswordClient) *Basic
func (*Basic) Authenticate ¶
type ExtendedJWT ¶
type ExtendedJWT struct {
// contains filtered or unexported fields
}
func ProvideExtendedJWT ¶
func ProvideExtendedJWT(userService user.Service, cfg *setting.Cfg, signingKeys signingkeys.Service, oauthServer oauthserver.OAuth2Server) *ExtendedJWT
func (*ExtendedJWT) Authenticate ¶
func (*ExtendedJWT) Name ¶
func (s *ExtendedJWT) Name() string
func (*ExtendedJWT) Priority ¶
func (s *ExtendedJWT) Priority() uint
type ExtendedJWTClaims ¶
type Form ¶
type Form struct {
// contains filtered or unexported fields
}
func ProvideForm ¶
func ProvideForm(client authn.PasswordClient) *Form
func (*Form) Authenticate ¶
type Grafana ¶
type Grafana struct {
// contains filtered or unexported fields
}
func (*Grafana) AuthenticatePassword ¶
func (*Grafana) AuthenticateProxy ¶
type JWT ¶
type JWT struct {
// contains filtered or unexported fields
}
func ProvideJWT ¶
func ProvideJWT(jwtService auth.JWTVerifierService, cfg *setting.Cfg) *JWT
func (*JWT) Authenticate ¶
type LDAP ¶
type LDAP struct {
// contains filtered or unexported fields
}
func ProvideLDAP ¶
func (*LDAP) AuthenticatePassword ¶
func (*LDAP) AuthenticateProxy ¶
type OAuth ¶
type OAuth struct {
// contains filtered or unexported fields
}
func ProvideOAuth ¶
func (*OAuth) Authenticate ¶
type Password ¶
type Password struct {
// contains filtered or unexported fields
}
func ProvidePassword ¶
func ProvidePassword(loginAttempts loginattempt.Service, clients ...authn.PasswordClient) *Password
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func ProvideProxy ¶
func (*Proxy) Authenticate ¶
type Render ¶
type Render struct {
// contains filtered or unexported fields
}
func ProvideRender ¶
func (*Render) Authenticate ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func ProvideSession ¶
func ProvideSession(cfg *setting.Cfg, sessionService auth.UserTokenService, features *featuremgmt.FeatureManager) *Session
func (*Session) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.