gateway

package
v0.0.0-...-9eaf9d2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthTokenManager

func NewAuthTokenManager(signingKey []byte, signingMethod jwt.SigningMethod, tokenTimeout, refreshTimeout time.Duration) service.AuthTokenManager

func NewGoogleAuthClient

func NewGoogleAuthClient(clientID, clientSecret, redirectURI string, timeout time.Duration) service.GoogleAuthClient

Types

type AppUserClaims

type AppUserClaims struct {
	LoginID          string `json:"loginId"`
	AppUserID        uint   `json:"appUserId"`
	Username         string `json:"username"`
	OrganizationID   uint   `json:"organizationId"`
	OrganizationName string `json:"organizationName"`
	Role             string `json:"role"`
	TokenType        string `json:"tokenType"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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