Merge pull request #54618 from nextcloud/fix/oauth2/limit-getToken-grant_type-values

pull/54655/head
Kate 2025-08-26 14:07:56 +07:00 committed by GitHub
commit 6bb941bfad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

@ -54,7 +54,7 @@ class OauthApiController extends Controller {
/**
* Get a token
*
* @param string $grant_type Token type that should be granted
* @param 'authorization_code'|'refresh_token' $grant_type Token type that should be granted
* @param ?string $code Code of the flow
* @param ?string $refresh_token Refresh token
* @param ?string $client_id Client ID

@ -128,6 +128,10 @@
"properties": {
"grant_type": {
"type": "string",
"enum": [
"authorization_code",
"refresh_token"
],
"description": "Token type that should be granted"
},
"code": {

@ -22834,6 +22834,10 @@
"properties": {
"grant_type": {
"type": "string",
"enum": [
"authorization_code",
"refresh_token"
],
"description": "Token type that should be granted"
},
"code": {