package testing
import "k8s.io/client-go/1.5/plugin/pkg/auth/authenticator/token/oidc/testing"
Index ¶
Functions ¶
func GenerateSelfSignedCert ¶
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)
Source Files ¶
provider.go
- Version
- v1.5.0
- Published
- Oct 23, 2016
- Platform
- js/wasm
- Imports
- 23 packages
- Last checked
- 3 seconds ago –
Tools for package owners.