Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractSignedPermissions ¶
func ExtractSignedPermissions(verifier jwt.Verifier, token string) ([]auth.Permission, error)
ExtractSignedPermissions returns the permissions granted to the token by the passed signer. If the token isn't signed by the signer, it will not pass verification.
func NewSignedJWT ¶
func NewSignedJWT(signer jwt.Signer, permissions []auth.Permission, ttl time.Duration) (string, error)
NewSignedJWT returns a signed JWT token with the passed permissions and signer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.