diff --git a/authenticate/handlers.go b/authenticate/handlers.go index 30d649c50..c769ff7d3 100644 --- a/authenticate/handlers.go +++ b/authenticate/handlers.go @@ -28,7 +28,6 @@ import ( "github.com/pomerium/pomerium/internal/sessions" "github.com/pomerium/pomerium/internal/telemetry/trace" "github.com/pomerium/pomerium/internal/urlutil" - "github.com/pomerium/pomerium/internal/version" "github.com/pomerium/pomerium/pkg/cryptutil" "github.com/pomerium/pomerium/pkg/grpc/databroker" "github.com/pomerium/pomerium/pkg/grpc/directory" @@ -592,7 +591,6 @@ func (a *Authenticate) getUserInfoData(r *http.Request) (handlers.UserInfoData, WebAuthnCreationOptions: creationOptions, WebAuthnRequestOptions: requestOptions, WebAuthnURL: urlutil.WebAuthnURL(r, authenticateURL, state.sharedKey, r.URL.Query()), - PomeriumVersion: version.FullVersion(), }, nil } diff --git a/authenticate/handlers/userinfo.go b/authenticate/handlers/userinfo.go index a44be11ba..99d227076 100644 --- a/authenticate/handlers/userinfo.go +++ b/authenticate/handlers/userinfo.go @@ -26,7 +26,6 @@ type UserInfoData struct { WebAuthnCreationOptions *webauthn.PublicKeyCredentialCreationOptions WebAuthnRequestOptions *webauthn.PublicKeyCredentialRequestOptions WebAuthnURL string - PomeriumVersion string } // ToJSON converts the data into a JSON map. @@ -53,7 +52,6 @@ func (data UserInfoData) ToJSON() map[string]interface{} { m["webAuthnCreationOptions"] = data.WebAuthnCreationOptions m["webAuthnRequestOptions"] = data.WebAuthnRequestOptions m["webAuthnUrl"] = data.WebAuthnURL - m["pomeriumVersion"] = data.PomeriumVersion return m } diff --git a/internal/httputil/errors.go b/internal/httputil/errors.go index a3737a5cb..34da48ffd 100644 --- a/internal/httputil/errors.go +++ b/internal/httputil/errors.go @@ -52,7 +52,6 @@ func (e *HTTPError) ErrorResponse(w http.ResponseWriter, r *http.Request) { StatusText string `json:"-"` RequestID string `json:",omitempty"` CanDebug bool `json:"-"` - Version string `json:"-"` DebugURL *url.URL `json:",omitempty"` }{ Status: e.Status, @@ -76,7 +75,6 @@ func (e *HTTPError) ErrorResponse(w http.ResponseWriter, r *http.Request) { "requestId": response.RequestID, "status": response.Status, "statusText": response.StatusText, - "version": response.Version, } if response.DebugURL != nil { m["debugUrl"] = response.DebugURL.String() diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 3df126663..179cbdc57 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -1,7 +1,6 @@ import Box from "@mui/material/Box"; import CssBaseline from "@mui/material/CssBaseline"; import { ThemeProvider } from "@mui/material/styles"; -import { get } from "lodash"; import React, { FC } from "react"; import ErrorPage from "./components/ErrorPage"; @@ -53,7 +52,7 @@ const App: FC = () => { -