authtest

package
v0.0.0-...-f69229d Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Issuer    = "https://testing.auth0.com/"
	Audience  = "https://api.testing.io/"
	Algorithm = "RS256"
	KeyId     = "SomeKeyId"
	Claim     = "email"
)

Variables

This section is empty.

Functions

func CreateTokenString

func CreateTokenString(c jwt.Claims, key interface{}) string

func CreateTokenStringWithAlg

func CreateTokenStringWithAlg(alg string, c jwt.Claims, key interface{}) string

func GetDefaultClaims

func GetDefaultClaims() jwt.MapClaims

func GetRawRS256Jwk

func GetRawRS256Jwk(publicKey *rsa.PublicKey) string

func LoadAttackerPrivateKey

func LoadAttackerPrivateKey() *rsa.PrivateKey

func LoadPrivateKey

func LoadPrivateKey() *rsa.PrivateKey

func LoadPublicKey

func LoadPublicKey() *rsa.PublicKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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