Documentation ¶
Overview ¶
Package token is used by package ssgrpc for generating and validating HMAC-SHA256 tokens sent as "per RPC credentials".
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type UserToken ¶
type UserToken struct { //authenticated user name IAM string `json:"iam"` //unix epoc expire time EXP int64 `json:"exp"` }
UserToken represents an authenticated user
func GenUserToken ¶
GenUserToken will generate an expiring HMAC-SHA256 signed token representing an authenticated user
Click to show internal directories.
Click to hide internal directories.