testing

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSelfSignedCert

func GenerateSelfSignedCert(t *testing.T, host, certPath, keyPath string)

generateSelfSignedCert generates a self-signed cert/key pairs and writes to the certPath/keyPath. This method is mostly identical to crypto.GenerateSelfSignedCert except for the 'IsCA' and 'KeyUsage' in the certificate template. (Maybe we can merge these two methods).

Types

type OIDCProvider

type OIDCProvider struct {
	Mux     *http.ServeMux
	PCFG    oidc.ProviderConfig
	PrivKey *key.PrivateKey
	// contains filtered or unexported fields
}

func NewOIDCProvider

func NewOIDCProvider(t *testing.T, issuerPath string) *OIDCProvider

NewOIDCProvider provides a bare minimum OIDC IdP Server useful for testing.

func (*OIDCProvider) ServeTLSWithKeyPair

func (op *OIDCProvider) ServeTLSWithKeyPair(cert, key string) (*httptest.Server, error)

Jump to

Keyboard shortcuts

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