mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
fix(oauth2): Limit allowed grant_type values in getToken
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
32f5f6e08e
commit
1b4722c330
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