auth

package
v6.0.0-beta2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserAuthTokenService

type UserAuthTokenService struct {
	SQLStore          *sqlstore.SqlStore            `inject:""`
	ServerLockService *serverlock.ServerLockService `inject:""`
	Cfg               *setting.Cfg                  `inject:""`
	// contains filtered or unexported fields
}

func (*UserAuthTokenService) CreateToken

func (s *UserAuthTokenService) CreateToken(userId int64, clientIP, userAgent string) (*models.UserToken, error)

func (*UserAuthTokenService) Init

func (s *UserAuthTokenService) Init() error

func (*UserAuthTokenService) LookupToken

func (s *UserAuthTokenService) LookupToken(unhashedToken string) (*models.UserToken, error)

func (*UserAuthTokenService) RevokeToken

func (s *UserAuthTokenService) RevokeToken(token *models.UserToken) error

func (*UserAuthTokenService) Run

func (srv *UserAuthTokenService) Run(ctx context.Context) error

func (*UserAuthTokenService) TryRotateToken

func (s *UserAuthTokenService) TryRotateToken(token *models.UserToken, clientIP, userAgent string) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL