forked from vikunja/vikunja
Clean up swagger
This commit is contained in:
parent
213a7db661
commit
717c3bcc0b
|
@ -72,7 +72,7 @@ func Middleware() echo.MiddlewareFunc {
|
|||
return next(c)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Otherwise, return the original error from jwt middleware
|
||||
return jwtErr
|
||||
}
|
||||
|
|
|
@ -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": [
|
||||
|
|
|
@ -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": [
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue