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:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -63,7 +63,7 @@ oidc:
|
|||||||
issuer: https://auth.example.com
|
issuer: https://auth.example.com
|
||||||
client_id: aitrade
|
client_id: aitrade
|
||||||
client_secret: your-secret-here
|
client_secret: your-secret-here
|
||||||
redirect_url: http://localhost:8080/callback
|
redirect_url: http://localhost:8080/oauth2/callback
|
||||||
scopes:
|
scopes:
|
||||||
- openid
|
- openid
|
||||||
- profile
|
- profile
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ func (s *Server) Run(ctx context.Context) error {
|
|||||||
|
|
||||||
// Public endpoints (no auth required)
|
// Public endpoints (no auth required)
|
||||||
mux.HandleFunc("/health", s.handleHealth)
|
mux.HandleFunc("/health", s.handleHealth)
|
||||||
mux.HandleFunc("/callback", s.auth.HandleCallback)
|
mux.HandleFunc("/oauth2/callback", s.auth.HandleCallback)
|
||||||
|
|
||||||
// Protected endpoints (auth required)
|
// Protected endpoints (auth required)
|
||||||
mux.Handle("/", s.auth.Middleware(http.HandlerFunc(s.handleOverview)))
|
mux.Handle("/", s.auth.Middleware(http.HandlerFunc(s.handleOverview)))
|
||||||
|
|||||||
Reference in new issue
Block a user