jwthelper

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package jwthelper implements some common methods on top of the JWT library. In particular, we handle signing in this code base and don't delegate to the library since we're using an external signer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignJWT

func SignJWT(token *jwt.Token, signer crypto.Signer) (string, error)

SignJWT takes a JWT structure, extracts the signing string and signs it with the provided signer. The base64 serialized JWT is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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