mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #54618 from nextcloud/fix/oauth2/limit-getToken-grant_type-values
This commit is contained in:
commit
6bb941bfad
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": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue