diff --git a/pkg/modules/auth/middleware.go b/pkg/modules/auth/middleware.go index cd24aa0c84..2091e4daf5 100644 --- a/pkg/modules/auth/middleware.go +++ b/pkg/modules/auth/middleware.go @@ -72,7 +72,7 @@ func Middleware() echo.MiddlewareFunc { return next(c) } } - + // Otherwise, return the original error from jwt middleware return jwtErr } diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index 8de3381e27..5e954e86e1 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -32,35 +32,6 @@ var doc = `{ "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { - "/auth/identityawareproxy/token": { - "get": { - "description": "Generates a short-lived JWT based on the identity from the identity-aware proxy in order to provide the front-end with user id and username info", - "consumes": [ - "N/A" - ], - "produces": [ - "application/json" - ], - "tags": [ - "auth" - ], - "summary": "Authenticate a user from the Identity-Aware Proxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/auth.Token" - } - }, - "500": { - "description": "Internal error", - "schema": { - "$ref": "#/definitions/models.Message" - } - } - } - } - }, "/auth/openid/{provider}/callback": { "post": { "security": [ diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index 7225e0f6e8..7e3593b3db 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -15,35 +15,6 @@ }, "basePath": "/api/v1", "paths": { - "/auth/identityawareproxy/token": { - "get": { - "description": "Generates a short-lived JWT based on the identity from the identity-aware proxy in order to provide the front-end with user id and username info", - "consumes": [ - "N/A" - ], - "produces": [ - "application/json" - ], - "tags": [ - "auth" - ], - "summary": "Authenticate a user from the Identity-Aware Proxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/auth.Token" - } - }, - "500": { - "description": "Internal error", - "schema": { - "$ref": "#/definitions/models.Message" - } - } - } - } - }, "/auth/openid/{provider}/callback": { "post": { "security": [ diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index af8eb15d0f..6f7d0b26c0 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -1336,26 +1336,6 @@ paths: summary: User Avatar tags: - user - /auth/identityawareproxy/token: - get: - consumes: - - N/A - description: Generates a short-lived JWT based on the identity from the identity-aware - proxy in order to provide the front-end with user id and username info - produces: - - application/json - responses: - "200": - description: OK - schema: - $ref: '#/definitions/auth.Token' - "500": - description: Internal error - schema: - $ref: '#/definitions/models.Message' - summary: Authenticate a user from the Identity-Aware Proxy - tags: - - auth /auth/openid/{provider}/callback: post: consumes: