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) IsEnabled() bool
- func (s *APIKey) Name() string
- func (s *APIKey) Namespace() string
- func (s *APIKey) Priority() uint
- func (s *APIKey) ResolveIdentity(ctx context.Context, orgID int64, namespaceID authn.NamespaceID) (*authn.Identity, error)
- func (s *APIKey) Test(ctx context.Context, r *authn.Request) bool
- type Basic
- type ExtendedJWT
- type Form
- type Grafana
- type IdentityClient
- type JWT
- type LDAP
- type OAuth
- func (c *OAuth) Authenticate(ctx context.Context, r *authn.Request) (*authn.Identity, error)
- func (c *OAuth) IsEnabled() bool
- func (c *OAuth) Logout(ctx context.Context, user authn.Requester) (*authn.Redirect, bool)
- func (c *OAuth) Name() string
- func (c *OAuth) RedirectURL(ctx context.Context, r *authn.Request) (*authn.Redirect, error)
- 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) IsEnabled() bool
- 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
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 ¶
func (*APIKey) ResolveIdentity ¶
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(cfg *setting.Cfg) *ExtendedJWT
func (*ExtendedJWT) Authenticate ¶
func (*ExtendedJWT) IsEnabled ¶
func (s *ExtendedJWT) IsEnabled() bool
func (*ExtendedJWT) Name ¶
func (s *ExtendedJWT) Name() string
func (*ExtendedJWT) Priority ¶
func (s *ExtendedJWT) Priority() uint
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 IdentityClient ¶
type IdentityClient struct {
// contains filtered or unexported fields
}
func ProvideIdentity ¶
func ProvideIdentity(identity *authn.Identity) *IdentityClient
func (*IdentityClient) Authenticate ¶
func (*IdentityClient) IsEnabled ¶
func (i *IdentityClient) IsEnabled() bool
func (*IdentityClient) Name ¶
func (i *IdentityClient) Name() string
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 ProvideOAuth( name string, cfg *setting.Cfg, oauthService oauthtoken.OAuthTokenService, socialService social.Service, settingsProviderService setting.Provider, features featuremgmt.FeatureToggles, ) *OAuth
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, authInfoService login.AuthInfoService) *Session
func (*Session) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.