admin

package
v0.0.0-...-8bc6207 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminRepo

type AdminRepo interface {
	VerifySSOJWT(claims *jwt.StandardClaims, kid, userAgent string) error
	AddSSOJWT(claims *jwt.StandardClaims, kid, userAgent string) error
}

type JWTToken

type JWTToken struct {
	KID       string `json:"kid"`
	JTI       string `json:"jti"`
	IAT       int64  `json:"iat"`
	NBF       int64  `json:"nbf"`
	EXP       int64  `json:"exp"`
	UserAgent string `json:"userAgent"`
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store contains our dependency

func NewStore

func NewStore(scope *gocb.Scope) *Store

func (*Store) AddSSOJWT

func (s *Store) AddSSOJWT(claims *jwt.StandardClaims, kid, userAgent string) error

func (*Store) VerifySSOJWT

func (s *Store) VerifySSOJWT(claims *jwt.StandardClaims, kid, userAgent string) error

Jump to

Keyboard shortcuts

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