httpserver

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package httpserver serves OIDC callback, redirect, and health endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthResponse

type HealthResponse struct {
	Status string `json:"status"`
}

HealthResponse is the JSON response for the health check endpoint

type IPRateLimiter

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

IPRateLimiter implements per-IP rate limiting with TTL-based eviction.

type Server

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

Server is the HTTP server for handling OIDC callbacks and health checks

func NewServer

func NewServer(cfg *config.Config, oidcProvider *oidc.Provider, sessionMgr *session.Manager) (*Server, error)

NewServer creates a new HTTP server

func (*Server) Shutdown

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

Shutdown gracefully shuts down the HTTP server

func (*Server) Start

func (s *Server) Start() error

Start starts the HTTP server

Jump to

Keyboard shortcuts

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