[skip ci] Updated swagger docs

This commit is contained in:
Frederick [Bot] 2026-06-19 16:52:13 +00:00
parent 7208694960
commit 764e4efa18
3 changed files with 40 additions and 5 deletions

View File

@ -7456,7 +7456,7 @@ const docTemplate = `{
},
"/user/logout": {
"post": {
"description": "Destroys the current session and clears the refresh token cookie.",
"description": "Destroys the current session and clears the refresh token cookie. For OpenID Connect sessions the response includes an ` + "`" + `oidc_logout_url` + "`" + ` the client should redirect to so the provider session is ended too.",
"produces": [
"application/json"
],
@ -7468,7 +7468,7 @@ const docTemplate = `{
"200": {
"description": "Successfully logged out.",
"schema": {
"$ref": "#/definitions/models.Message"
"$ref": "#/definitions/v1.LogoutResponse"
}
}
}
@ -11149,6 +11149,18 @@ const docTemplate = `{
}
}
},
"v1.LogoutResponse": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"oidc_logout_url": {
"description": "RP-Initiated Logout URL the frontend redirects to. Empty for non-OIDC sessions.",
"type": "string"
}
}
},
"v1.UserAvatarProvider": {
"type": "object",
"properties": {

View File

@ -7448,7 +7448,7 @@
},
"/user/logout": {
"post": {
"description": "Destroys the current session and clears the refresh token cookie.",
"description": "Destroys the current session and clears the refresh token cookie. For OpenID Connect sessions the response includes an `oidc_logout_url` the client should redirect to so the provider session is ended too.",
"produces": [
"application/json"
],
@ -7460,7 +7460,7 @@
"200": {
"description": "Successfully logged out.",
"schema": {
"$ref": "#/definitions/models.Message"
"$ref": "#/definitions/v1.LogoutResponse"
}
}
}
@ -11141,6 +11141,18 @@
}
}
},
"v1.LogoutResponse": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"oidc_logout_url": {
"description": "RP-Initiated Logout URL the frontend redirects to. Empty for non-OIDC sessions.",
"type": "string"
}
}
},
"v1.UserAvatarProvider": {
"type": "object",
"properties": {

View File

@ -1714,6 +1714,15 @@ definitions:
password:
type: string
type: object
v1.LogoutResponse:
properties:
message:
type: string
oidc_logout_url:
description: RP-Initiated Logout URL the frontend redirects to. Empty for
non-OIDC sessions.
type: string
type: object
v1.UserAvatarProvider:
properties:
avatar_provider:
@ -6945,13 +6954,15 @@ paths:
/user/logout:
post:
description: Destroys the current session and clears the refresh token cookie.
For OpenID Connect sessions the response includes an `oidc_logout_url` the
client should redirect to so the provider session is ended too.
produces:
- application/json
responses:
"200":
description: Successfully logged out.
schema:
$ref: '#/definitions/models.Message'
$ref: '#/definitions/v1.LogoutResponse'
summary: Logout
tags:
- auth