Documentation ¶
Index ¶
- type UserAuthTokenService
- func (s *UserAuthTokenService) BatchRevokeAllUserTokens(ctx context.Context, userIds []int64) error
- func (s *UserAuthTokenService) CreateToken(ctx context.Context, user *user.User, clientIP net.IP, userAgent string) (*auth.UserToken, error)
- func (s *UserAuthTokenService) GetUserRevokedTokens(ctx context.Context, userId int64) ([]*auth.UserToken, error)
- func (s *UserAuthTokenService) GetUserToken(ctx context.Context, userId, userTokenId int64) (*auth.UserToken, error)
- func (s *UserAuthTokenService) GetUserTokens(ctx context.Context, userId int64) ([]*auth.UserToken, error)
- func (s *UserAuthTokenService) LookupToken(ctx context.Context, unhashedToken string) (*auth.UserToken, error)
- func (s *UserAuthTokenService) RevokeAllUserTokens(ctx context.Context, userId int64) error
- func (s *UserAuthTokenService) RevokeToken(ctx context.Context, token *auth.UserToken, soft bool) error
- func (s *UserAuthTokenService) RotateToken(ctx context.Context, cmd auth.RotateCommand) (*auth.UserToken, error)
- func (s *UserAuthTokenService) Run(ctx context.Context) error
- func (s *UserAuthTokenService) TryRotateToken(ctx context.Context, token *auth.UserToken, clientIP net.IP, userAgent string) (bool, *auth.UserToken, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserAuthTokenService ¶
type UserAuthTokenService struct {
// contains filtered or unexported fields
}
func ProvideUserAuthTokenService ¶
func ProvideUserAuthTokenService(sqlStore db.DB, serverLockService *serverlock.ServerLockService, quotaService quota.Service, cfg *setting.Cfg) (*UserAuthTokenService, error)
func (*UserAuthTokenService) BatchRevokeAllUserTokens ¶
func (s *UserAuthTokenService) BatchRevokeAllUserTokens(ctx context.Context, userIds []int64) error
func (*UserAuthTokenService) CreateToken ¶
func (*UserAuthTokenService) GetUserRevokedTokens ¶
func (*UserAuthTokenService) GetUserToken ¶
func (*UserAuthTokenService) GetUserTokens ¶
func (*UserAuthTokenService) LookupToken ¶
func (*UserAuthTokenService) RevokeAllUserTokens ¶
func (s *UserAuthTokenService) RevokeAllUserTokens(ctx context.Context, userId int64) error
func (*UserAuthTokenService) RevokeToken ¶
func (*UserAuthTokenService) RotateToken ¶
func (s *UserAuthTokenService) RotateToken(ctx context.Context, cmd auth.RotateCommand) (*auth.UserToken, error)
Click to show internal directories.
Click to hide internal directories.