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
type ServerOption ¶
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
Click to show internal directories.
Click to hide internal directories.