oidc

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package oidc provides utilities for resolving OIDC configuration from various sources including Kubernetes service accounts, ConfigMaps, and inline configurations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OIDCConfig

type OIDCConfig struct {
	Issuer             string
	Audience           string
	JWKSURL            string
	IntrospectionURL   string
	ClientID           string
	ClientSecret       string
	ThvCABundlePath    string
	JWKSAuthTokenPath  string
	ResourceURL        string
	JWKSAllowPrivateIP bool
	InsecureAllowHTTP  bool
}

OIDCConfig represents the resolved OIDC configuration values

type OIDCConfigurable added in v0.3.10

type OIDCConfigurable interface {
	GetName() string
	GetNamespace() string
	GetOIDCConfig() *mcpv1alpha1.OIDCConfigRef
	GetProxyPort() int32
}

OIDCConfigurable is an interface for resources that have OIDC configuration

type Resolver

type Resolver interface {
	// Resolve takes any resource implementing OIDCConfigurable and resolves its OIDC config
	Resolve(ctx context.Context, resource OIDCConfigurable) (*OIDCConfig, error)
}

Resolver is the interface for resolving OIDC configuration from various sources

func NewResolver

func NewResolver(k8sClient client.Client) Resolver

NewResolver creates a new OIDC configuration resolver It accepts an optional Kubernetes client for ConfigMap resolution

Jump to

Keyboard shortcuts

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