http

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 33 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,
	schemaSource string,
	scope kubebindv1alpha2.InformerScope,
	mgr *kubernetes.Manager,
) (*handler, error)

Types

type AuthCode

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

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

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

func NewOIDCServiceProvider

func NewOIDCServiceProvider(ctx context.Context, clientID, clientSecret, redirectURI, issuerURL string) (*OIDCServiceProvider, error)

func (*OIDCServiceProvider) OIDCProviderConfig

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

type Server

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

func NewServer

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

func (*Server) Addr

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

func (*Server) Start

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

type UISchema

type UISchema struct {
	Name     string
	Version  string
	Group    string
	Kind     string
	Scope    string // "Namespaced" or "Cluster"
	Resource string

	// SessionID
	SessionID string
}

Jump to

Keyboard shortcuts

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