Documentation ¶
Index ¶
- Constants
- func HashCacheKey(key string) (string, error)
- type AuthProxy
- func (auth *AuthProxy) GetSignedInUser(userID int64) (*models.SignedInUser, error)
- func (auth *AuthProxy) GetUserViaCache(logger log.Logger) (int64, error)
- func (auth *AuthProxy) HasHeader() bool
- func (auth *AuthProxy) IsAllowedIP() error
- func (auth *AuthProxy) IsEnabled() bool
- func (auth *AuthProxy) Login(logger log.Logger, ignoreCache bool) (int64, error)
- func (auth *AuthProxy) LoginViaHeader() (int64, error)
- func (auth *AuthProxy) LoginViaLDAP() (int64, error)
- func (auth *AuthProxy) Remember(id int64) error
- func (auth *AuthProxy) RemoveUserFromCache(logger log.Logger) error
- type Error
- type Options
Constants ¶
View Source
const (
// CachePrefix is a prefix for the cache key
CachePrefix = "auth-proxy-sync-ttl:%s"
)
Variables ¶
This section is empty.
Functions ¶
func HashCacheKey ¶
Types ¶
type AuthProxy ¶
type AuthProxy struct {
// contains filtered or unexported fields
}
AuthProxy struct
func (*AuthProxy) GetSignedInUser ¶
func (auth *AuthProxy) GetSignedInUser(userID int64) (*models.SignedInUser, error)
GetSignedUser gets full signed in user info.
func (*AuthProxy) GetUserViaCache ¶
GetUserViaCache gets user ID from cache.
func (*AuthProxy) IsAllowedIP ¶
IsAllowedIP returns whether provided IP is allowed.
func (*AuthProxy) LoginViaHeader ¶
LoginViaHeader logs in user from the header only
func (*AuthProxy) LoginViaLDAP ¶
LoginViaLDAP logs in user via LDAP request
type Options ¶
type Options struct { RemoteCache *remotecache.RemoteCache Ctx *models.ReqContext OrgID int64 }
Options for the AuthProxy
Click to show internal directories.
Click to hide internal directories.