authtoken

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: May 20, 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(signer jwt.Signer, 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