oidc

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// JWKSEndpoint is the endpoint that serves the JWKS for JWT validation
	JWKSEndpoint = "/jwks.json"
	// OIDCDiscoveryEndpoint is the endpoint that serves the OIDC discovery document
	OIDCDiscoveryEndpoint = "/.well-known/openid-configuration"
	// AuthorizationEndpoint is the endpoint for OIDC authorization
	AuthorizationEndpoint = "/authorize"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Port is the port that the server will listen on
	Port int

	// ListenAddress is the address the server will listen on
	ListenAddress string

	// JWKS is the JSON Web Key Set (JWKS) for the server
	JWKS []byte

	// Healthz is the health interface for the server
	Healthz healthz.Healthz

	// JWKSURI is the public URI where the JWKS can be accessed (if different from server address)
	JWKSURI *string

	// AllowedHosts is a list of allowed hosts that a client request will be valid for.
	AllowedHosts []string

	TLSCertPath *string
	TLSKeyPath  *string

	// JWTIssuer is the issuer to use for JWT tokens (if not set, issuer not set)
	JWTIssuer *string

	// PathPrefix is a prefix to add to all HTTP endpoints
	PathPrefix *string

	// SignatureAlgorithm is the signature algorithm to use for JWT tokens
	SignatureAlgorithm jwa.KeyAlgorithm
}

Options is the configuration options for the HTTP server

type Server

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

Server is a HTTP server that partially implements the OIDC spec. Its purpose is only to support 3rd party resource providers being able to verify the JWT tokens issued by the Sentry server which may be used by the Dapr runtime to authenticate to components.

func New

func New(opts Options) (*Server, error)

New creates a new HTTP server with the given options

func (*Server) Run

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

Jump to

Keyboard shortcuts

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