server

package
v0.0.0-...-50f8504 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OIDCDiscoveryResponse

type OIDCDiscoveryResponse struct {
	Issuer                           string   `json:"issuer"`
	JWKSUri                          string   `json:"jwks_uri"`
	ResponseTypesSupported           []string `json:"response_types_supported"`
	SubjectTypesSupported            []string `json:"subject_types_supported"`
	IDTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"`
	ScopesSupported                  []string `json:"scopes_supported"`
	ClaimsSupported                  []string `json:"claims_supported"`
}

OIDCDiscoveryResponse represents the OIDC discovery document

type OIDCHandler

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

OIDCHandler handles OIDC discovery endpoints

func NewOIDCHandler

func NewOIDCHandler(jwtService jwt.JWTService, issuerURL string, logger *slog.Logger) *OIDCHandler

NewOIDCHandler creates a new OIDC handler

func (*OIDCHandler) JWKS

func (h *OIDCHandler) JWKS(w http.ResponseWriter, r *http.Request)

JWKS handles GET /.well-known/jwks.json

func (*OIDCHandler) OpenIDConfiguration

func (h *OIDCHandler) OpenIDConfiguration(w http.ResponseWriter, r *http.Request)

OpenIDConfiguration handles GET /.well-known/openid-configuration

type Server

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

Server represents the OAR HTTP server

func NewServer

func NewServer(cfg *config.Config, logger *slog.Logger, opts ...ServerOption) (*Server, error)

NewServer creates a new OAR server

func (*Server) Shutdown

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

Shutdown gracefully shuts down the server

func (*Server) Start

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

Start starts the server and background services

type ServerOption

type ServerOption func(*Server) error

ServerOption is a functional option for configuring Server

func WithAgentRegistry

func WithAgentRegistry(registry *storage.AgentRegistry) ServerOption

WithAgentRegistry sets a custom agent registry

func WithOrchestratorFactory

func WithOrchestratorFactory(factory *orchestrator.Factory) ServerOption

WithOrchestratorFactory sets a custom orchestrator factory

Jump to

Keyboard shortcuts

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