mirror of
https://github.com/friendica/friendica
synced 2025-04-22 15:10:12 +00:00
Add a second parameter to BaseApi::getRequest to enable API tests
This commit is contained in:
parent
d83ebe6031
commit
9cc675233d
40 changed files with 45 additions and 41 deletions
|
@ -47,7 +47,7 @@ class Authorize extends BaseApi
|
|||
'redirect_uri' => '', // Set a URI to redirect the user to. If this parameter is set to "urn:ietf:wg:oauth:2.0:oob" then the authorization code will be shown instead. Must match one of the redirect URIs declared during app registration.
|
||||
'scope' => 'read', // List of requested OAuth scopes, separated by spaces (or by pluses, if using query parameters). Must be a subset of scopes declared during app registration. If not provided, defaults to "read".
|
||||
'state' => '',
|
||||
]);
|
||||
], $request);
|
||||
|
||||
if ($request['response_type'] != 'code') {
|
||||
Logger::warning('Unsupported or missing response type', ['request' => $_REQUEST]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue