Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuth ¶
func NewAuth(client *redis.Client) auth_service.AuthInterface
func TokenValid ¶
func VerifyToken ¶
Types ¶
type ClientData ¶
type ClientData struct {
// contains filtered or unexported fields
}
func (*ClientData) CreateAuth ¶
func (tk *ClientData) CreateAuth(userid string, td *token_detail.TokenDetail) error
Save token metadata to Redis
func (*ClientData) DeleteRefresh ¶
func (tk *ClientData) DeleteRefresh(refreshUuid string) error
func (*ClientData) DeleteTokens ¶
func (tk *ClientData) DeleteTokens(authD *access_detail.AccessDetail) error
Once a user row in the token table
type RedisService ¶
type RedisService struct { Auth auth_service.AuthInterface Client *redis.Client }
func NewRedisService ¶
func NewRedisService(client *redis.Client) *RedisService
type Token ¶
type Token struct{}
func NewTokenService ¶
func NewTokenService() *Token
func (*Token) CreateToken ¶
func (t *Token) CreateToken(userid string) (*token_detail.TokenDetail, error)
func (*Token) ExtractTokenMetadata ¶
func (t *Token) ExtractTokenMetadata(r *http.Request) (*access_detail.AccessDetail, error)
Click to show internal directories.
Click to hide internal directories.