package
Version:
v1.45.3
Opens a new window with list of versions in this module.
Published: Dec 13, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
GetAPIKey returns api key from context is exists.
WithAPIKey creates context with api key.
type Claims struct {
ID uuid.UUID `json:"id"`
Email string `json:"email,omitempty"`
Expiration time.Time `json:"expires,omitempty"`
}
Claims represents data signed by server and used for authentication.
FromJSON returns Claims instance, parsed from JSON.
JSON returns json representation of Claims.
type Hmac struct {
Secret []byte
}
Hmac is hmac256 based Signer.
Sign implements satellite signer.
type Token struct {
Payload []byte
Signature []byte
}
Token represents authentication data structure.
FromBase64URLString creates Token instance from base64URLEncoded string representation.
String returns base64URLEncoded data joined with .
Source Files
¶
Click to show internal directories.
Click to hide internal directories.