use /oauth2/callback for oidc
Build and Push Docker Image / build-and-push (push) Successful in 3m27s
Build and Push Docker Image / build-and-push (push) Successful in 3m27s
Signed-off-by: kaedwen <kaedwen@heinrich.blue>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user