update auth-proxy main.go
@@ -657,7 +657,7 @@ func handleOIDCLogout(c echo.Context) error {
endSessionEndpoint := os.Getenv("KALM_OIDC_PROVIDER_URL") + "/session/end"
- return c.JSON(200, &LogoutRes{endSessionEndpoint})
+ return c.JSON(205, &LogoutRes{endSessionEndpoint})
}
func handleLog(c echo.Context) error {
@@ -683,11 +683,11 @@ func main() {
// oidc auth proxy handlers
e.GET("/oidc/login", handleOIDCLogin)
e.GET("/oidc/callback", handleOIDCCallback)
- e.GET("/oidc/logout", handleOIDCLogout)
// envoy ext_authz handlers
e.Any("/"+ENVOY_EXT_AUTH_PATH_PREFIX+"/*", handleExtAuthz)
e.Any("/"+ENVOY_EXT_AUTH_PATH_PREFIX, handleExtAuthz)
+ e.Any("/"+ENVOY_EXT_AUTH_PATH_PREFIX+"/oidc/logout", handleOIDCLogout)
e.POST("/log", handleLog)
