Clean up swagger
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
213a7db661
commit
717c3bcc0b
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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": [
|
||||||
|
|
|
@ -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": [
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue