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) return next(c)
} }
} }
// Otherwise, return the original error from jwt middleware // Otherwise, return the original error from jwt middleware
return jwtErr return jwtErr
} }

View File

@ -32,35 +32,6 @@ var doc = `{
"host": "{{.Host}}", "host": "{{.Host}}",
"basePath": "{{.BasePath}}", "basePath": "{{.BasePath}}",
"paths": { "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": { "/auth/openid/{provider}/callback": {
"post": { "post": {
"security": [ "security": [

View File

@ -15,35 +15,6 @@
}, },
"basePath": "/api/v1", "basePath": "/api/v1",
"paths": { "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": { "/auth/openid/{provider}/callback": {
"post": { "post": {
"security": [ "security": [

View File

@ -1336,26 +1336,6 @@ paths:
summary: User Avatar summary: User Avatar
tags: tags:
- user - 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: /auth/openid/{provider}/callback:
post: post:
consumes: consumes: