jwttest

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SampleSecretKey = []byte("SharedSecret")

Functions

func GenerateJwt

func GenerateJwt(t *testing.T, iss string, roles map[string][]string) (*jwt.Token, string)

GenerateJwt is a test function to generate a JWT structure similar the one received from Keycloak

Types

This section is empty.

Jump to

Keyboard shortcuts

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