client-go: k8s.io/client-go/plugin/pkg/auth/authenticator/token/oidc/testing Index | Files

package testing

import "k8s.io/client-go/plugin/pkg/auth/authenticator/token/oidc/testing"

Index

Package Files

provider.go

func GenerateSelfSignedCert Uses

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).

type OIDCProvider Uses

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

func NewOIDCProvider Uses

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

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

func (*OIDCProvider) ServeTLSWithKeyPair Uses

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

Package testing imports 23 packages (graph). Updated 2017-10-29. Refresh now. Tools for package owners.