authtoken

package
v0.17.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

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) (string, error)

NewSignedJWT returns a signed JWT token with the passed permissions and signer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL