summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-03-03 16:03:36 +0100
committerLibravatar GitHub <noreply@github.com>2025-03-03 15:03:36 +0000
commit1b37944f8b8eccc2afcfb0f603786209a3b7402d (patch)
tree2bc0be27cf0405e16ac3e14efc3b6973eb096b8b /docs/api
parentbumps go-ffmpreg to v0.6.6 (#3866) (diff)
downloadgotosocial-1b37944f8b8eccc2afcfb0f603786209a3b7402d.tar.xz
[feature] Refactor tokens, allow multiple app redirect_uris (#3849)
* [feature] Refactor tokens, allow multiple app redirect_uris * move + tweak handlers a bit * return error for unset oauth2.ClientStore funcs * wrap UpdateToken with cache * panic handling * cheeky little time optimization * unlock on error
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger.yaml20
1 files changed, 17 insertions, 3 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index 563a0c16f..c8b263afe 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -843,6 +843,19 @@ definitions:
example: https://example.org/callback?some=query
type: string
x-go-name: RedirectURI
+ redirect_uris:
+ description: Post-authorization redirect URIs for the application (OAuth2).
+ example: '[https://example.org/callback?some=query]'
+ items:
+ type: string
+ type: array
+ x-go-name: RedirectURIs
+ scopes:
+ description: OAuth scopes for this application.
+ items:
+ type: string
+ type: array
+ x-go-name: Scopes
vapid_key:
description: Push API key for this application.
type: string
@@ -7442,16 +7455,17 @@ paths:
type: string
x-go-name: ClientName
- description: |-
- Where the user should be redirected after authorization.
+ Single redirect URI or newline-separated list of redirect URIs (optional).
To display the authorization code to the user instead of redirecting to a web page, use `urn:ietf:wg:oauth:2.0:oob` in this parameter.
+
+ If no redirect URIs are provided, defaults to `urn:ietf:wg:oauth:2.0:oob`.
in: formData
name: redirect_uris
- required: true
type: string
x-go-name: RedirectURIs
- description: |-
- Space separated list of scopes.
+ Space separated list of scopes (optional).
If no scopes are provided, defaults to `read`.
in: formData