package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Mar 30, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package claims contains the JWT claims structure and a utility method
for signing them.
Audience is the JWT claim value that we'll look for.
type Claims struct {
Message *session.Session `json:"msg,omitempty"`
jwt.StandardClaims
}
Claims are JWT claims.
Sign will create a signed token from the given session template,
updating some fields within the Session object.
Validate will validate the token and expand its contents into a
Session. Not all fields of the Session will be populated.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.