~bigbes/lethe

ref: 3c45b48bd5d0d99f76d2063504adaa7b312b85bc lethe/internal/server/auth/authenticator.go -rw-r--r-- 797 bytes
3c45b48b — Eugene Blikh feat(http): chi server with middleware stack + RFC 7807 problem renderer a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Phase-5 stub. Replaced by real implementation in Phase 6.
//
// This stub only satisfies the compile-time surface that Server depends on:
// an Init that does nothing and a Middleware that is the identity passthrough.
// Phase 6 replaces this file with the forward-auth + OIDC implementation.
package auth

import (
	"context"
	"net/http"
)

// Authenticator is a no-op steward service. The real Phase-6 version will
// hold OIDC verifier state and forward-auth config.
type Authenticator struct{}

// Init satisfies the steward Service contract.
func (a *Authenticator) Init(_ context.Context) error { return nil }

// Middleware returns next unchanged. Phase 6 replaces this with the
// authentication chain.
func (a *Authenticator) Middleware(next http.Handler) http.Handler { return next }