1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 01:39:37 +02:00

Fix external token doc

This commit is contained in:
Chocobozzz 2025-09-15 13:39:41 +02:00
parent e2e15e3f0c
commit 50c184a9a2
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -1569,7 +1569,6 @@ paths:
oneOf:
- $ref: '#/components/schemas/OAuthToken-password'
- $ref: '#/components/schemas/OAuthToken-refresh_token'
- $ref: '#/components/schemas/OAuthToken-external_token'
discriminator:
propertyName: grant_type
mapping:
@ -11026,12 +11025,14 @@ components:
$ref: '#/components/schemas/User/properties/username'
password:
$ref: '#/components/schemas/password'
externalAuthToken:
type: string
description: If you want to authenticate using an external authentication token you got from an auth plugin (like `peertube-plugin-auth-openid-connect` for example) instead of a password or a refresh token, provide it here.
required:
- client_id
- client_secret
- grant_type
- username
- password
OAuthToken-refresh_token:
allOf:
- $ref: '#/components/schemas/OAuthClient'
@ -11049,26 +11050,6 @@ components:
- client_secret
- grant_type
- refresh_token
OAuthToken-external_token:
allOf:
- $ref: '#/components/schemas/OAuthClient'
- type: object
properties:
grant_type:
type: string
enum:
- password
username:
$ref: '#/components/schemas/User/properties/username'
externalAuthToken:
type: string
description: If you want to authenticate using an external authentication token you got from an auth plugin (like `peertube-plugin-auth-openid-connect` for example) instead of a username/password or a refresh token, provide it here.
required:
- client_id
- client_secret
- grant_type
- username
- externalAuthToken
VideoChannel:
allOf: