Documentation ¶
Index ¶
- Constants
- func HashCacheKey(key string) (string, error)
- type AuthProxy
- func (auth *AuthProxy) GetSignedInUser(userID int64, orgID int64) (*user.SignedInUser, error)
- func (auth *AuthProxy) HasHeader(reqCtx *contextmodel.ReqContext) bool
- func (auth *AuthProxy) IsAllowedIP(ip string) error
- func (auth *AuthProxy) IsEnabled() bool
- func (auth *AuthProxy) Login(reqCtx *contextmodel.ReqContext, ignoreCache bool) (int64, error)
- func (auth *AuthProxy) LoginViaLDAP(reqCtx *contextmodel.ReqContext) (int64, error)
- func (auth *AuthProxy) Remember(reqCtx *contextmodel.ReqContext, id int64) error
- func (auth *AuthProxy) RemoveUserFromCache(reqCtx *contextmodel.ReqContext) error
- type Error
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 ProvideAuthProxy ¶
func (*AuthProxy) GetSignedInUser ¶
GetSignedInUser gets full signed in user info.
func (*AuthProxy) HasHeader ¶
func (auth *AuthProxy) HasHeader(reqCtx *contextmodel.ReqContext) bool
HasHeader checks if we have specified header
func (*AuthProxy) IsAllowedIP ¶
IsAllowedIP returns whether provided IP is allowed.
func (*AuthProxy) Login ¶
func (auth *AuthProxy) Login(reqCtx *contextmodel.ReqContext, ignoreCache bool) (int64, error)
Login logs in user ID by whatever means possible.
func (*AuthProxy) LoginViaLDAP ¶
func (auth *AuthProxy) LoginViaLDAP(reqCtx *contextmodel.ReqContext) (int64, error)
LoginViaLDAP logs in user via LDAP request
func (*AuthProxy) Remember ¶
func (auth *AuthProxy) Remember(reqCtx *contextmodel.ReqContext, id int64) error
Remember user in cache
func (*AuthProxy) RemoveUserFromCache ¶
func (auth *AuthProxy) RemoveUserFromCache(reqCtx *contextmodel.ReqContext) error
RemoveUserFromCache removes user from cache.
Click to show internal directories.
Click to hide internal directories.