testing

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

View Source
const TEST_PRIVATE_KEY = `` /* 1705-byte string literal not displayed */
View Source
const TEST_PUBLIC_KEY = `` /* 400-byte string literal not displayed */

Variables

This section is empty.

Functions

func CreateTestDiscoveryServer

func CreateTestDiscoveryServer(options *TestTokenOptions) *httptest.Server

func CreateTestToken

func CreateTestToken(options *TestTokenOptions) string

Types

type TestDiscoveryDocument

type TestDiscoveryDocument struct {
	Issuer  string `json:"issuer"`
	JwksURI string `json:"jwks_uri"`
}

type TestTokenOptions

type TestTokenOptions struct {
	Secret   *TestingSecret
	Username string
	Issuer   string
}

func NewTestTokenOptions

func NewTestTokenOptions() *TestTokenOptions

type TestingSecret

type TestingSecret struct {
	PrivateKey string
	PublicKey  string

	Kid string
	Kty string
	E   string
	Use string
	Alg string
	N   string
}

Jump to

Keyboard shortcuts

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