Clean up swagger

This commit is contained in:
branchmispredictor 2021-05-18 18:42:44 -04:00
parent 213a7db661
commit 717c3bcc0b
4 changed files with 1 additions and 79 deletions

View File

@ -72,7 +72,7 @@ func Middleware() echo.MiddlewareFunc {
return next(c)
}
}
// Otherwise, return the original error from jwt middleware
return jwtErr
}

View File

@ -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": [

View File

@ -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": [

View File

@ -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: