http

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(
	provider *OIDCServiceProvider,
	oidcAuthorizeURL, backendCallbackURL, providerPrettyName, testingAutoSelect string,
	cookieSigningKey, cookieEncryptionKey []byte,
	scope kubebindv1alpha1.Scope,
	mgr *kubernetes.Manager,
	apiextensionsLister apiextensionslisters.CustomResourceDefinitionLister,
) (*handler, error)

Types

type AuthCode added in v0.0.14

type AuthCode struct {
	RedirectURL string `json:"redirectURL"`
	SessionID   string `json:"sid"`
	ClusterID   string `json:"cid"`
}

AuthCode is sent and received by to/from the OIDC provider. It's the state we can use to map the OIDC provider's response to the request from the client.

type OIDCServiceProvider added in v0.0.11

type OIDCServiceProvider struct {
	// contains filtered or unexported fields
}

func NewOIDCServiceProvider

func NewOIDCServiceProvider(clientID, clientSecret, redirectURI, issuerURL string) (*OIDCServiceProvider, error)

func (*OIDCServiceProvider) OIDCProviderConfig added in v0.0.11

func (o *OIDCServiceProvider) OIDCProviderConfig(scopes []string) *oauth2.Config

type Server added in v0.0.11

type Server struct {
	Router *mux.Router
	// contains filtered or unexported fields
}

func NewServer

func NewServer(options *options.Serve) (*Server, error)

func (*Server) Addr added in v0.0.11

func (s *Server) Addr() net.Addr

func (*Server) Start added in v0.0.11

func (s *Server) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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