use /oauth2/callback for oidc
Build and Push Docker Image / build-and-push (push) Successful in 3m27s

Signed-off-by: kaedwen <kaedwen@heinrich.blue>
This commit is contained in:
kaedwen
2026-07-04 20:34:01 +02:00
parent c84cc19c2e
commit 1f70dd91dd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ oidc:
issuer: https://auth.example.com
client_id: aitrade
client_secret: your-secret-here
redirect_url: http://localhost:8080/callback
redirect_url: http://localhost:8080/oauth2/callback
scopes:
- openid
- profile
+1 -1
View File
@@ -87,7 +87,7 @@ func (s *Server) Run(ctx context.Context) error {
// Public endpoints (no auth required)
mux.HandleFunc("/health", s.handleHealth)
mux.HandleFunc("/callback", s.auth.HandleCallback)
mux.HandleFunc("/oauth2/callback", s.auth.HandleCallback)
// Protected endpoints (auth required)
mux.Handle("/", s.auth.Middleware(http.HandlerFunc(s.handleOverview)))