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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeSegment

func EncodeSegment(seg []byte) string

func NewWithClaims

func NewWithClaims(method SigningMethod, claims Claims) *jwt.Token

Types

type Claim

type Claim struct {
	jwt.StandardClaims
}

type Claims

type Claims interface {
	Valid() error
}

type JWTToken

type JWTToken struct {
	JWTToken string `json:"jwt_token"`
}

type Repo

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

func NewRepo

func NewRepo(scope *gocb.Scope, controller controllers.Controller, domainName string, URL string, signingToken []byte) *Repo

func (*Repo) GetAdminURL

func (r *Repo) GetAdminURL() string

func (*Repo) GetJWT

func (r *Repo) GetJWT(c echo.Context) error

func (*Repo) GetSSOJWT

func (r *Repo) GetSSOJWT(c echo.Context) error

func (*Repo) VerifySSO

func (r *Repo) VerifySSO(c echo.Context) error

type SigningMethod

type SigningMethod interface {
	Verify(signingString, signature string, key interface{}) error // Returns nil if signature is valid
	Sign(signingString string, key interface{}) (string, error)    // Returns encoded signature or error
	Alg() string                                                   // returns the alg identifier for this method (example: 'HS256')
}

type Token

type Token struct {
	jwt.Token
}

func (*Token) SignedString

func (t *Token) SignedString(key interface{}) (string, error)

func (*Token) SigningString

func (t *Token) SigningString() (string, error)

Jump to

Keyboard shortcuts

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