Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractUserID ¶
Types ¶
type IDToken ¶
type IDToken struct { Issuer string `json:"iss"` Subject string `json:"sub"` Audience string `json:"aud"` Expiry time.Time `json:"exp"` IssuedAt time.Time `json:"iat"` Email string `json:"email"` // Use "role" as json tag to keep compatibility. // AdminRole is accountproto.Account_OWNER in the case of AdminAccount. // AdminRole is accountproto.Account_UNASSIGNED in the case of Account. AdminRole accountproto.Account_Role `json:"role"` }
type Signer ¶
func NewSignerWithPrivateKey ¶
func NewSignerWithPrivateKey(privateKey *rsa.PrivateKey) (Signer, error)
Click to show internal directories.
Click to hide internal directories.