generator

package
v0.0.0-...-4436486 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTokenHS256

func GenerateTokenHS256(base64ClientSecret string, jwtClaims jwt.MapClaims) (signedToken string, err error)

GenerateTokenHS256 generates an HS256 token containing the given claims, the returns the token signed with the given client secret. Used with single keys (ie. client secret)

func GenerateTokenRSA256

func GenerateTokenRSA256(pemPrivKey []byte, jwtClaims jwt.MapClaims) (signedToken string, err error)

GenerateTokenRSA256 generates an RSA256 token containing the given claims, the returns the token signed with the given PEM private key. Used with public - private keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

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