Documentation
¶
Index ¶
Constants ¶
View Source
const (
IssuerWaveTerm = "waveterm"
)
Variables ¶
This section is empty.
Functions ¶
func GetPublicKey ¶
func GetPublicKey() []byte
func GetPublicKeyBase64 ¶
func GetPublicKeyBase64() string
func SetPrivateKey ¶
func SetPublicKey ¶
func Sign ¶
func Sign(claims *WaveJwtClaims) (string, error)
Types ¶
type KeyPair ¶
func GenerateKeyPair ¶
type WaveJwtClaims ¶
type WaveJwtClaims struct {
jwt.RegisteredClaims
MainServer bool `json:"mainserver,omitempty"`
Sock string `json:"sock,omitempty"`
RouteId string `json:"routeid,omitempty"`
ProcRoute bool `json:"procroute,omitempty"`
BlockId string `json:"blockid,omitempty"`
JobId string `json:"jobid,omitempty"`
Conn string `json:"conn,omitempty"`
Router bool `json:"router,omitempty"`
}
func ValidateAndExtract ¶
func ValidateAndExtract(tokenStr string) (*WaveJwtClaims, error)
Click to show internal directories.
Click to hide internal directories.