mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Enhance debugging output in OAuth2 mock endpoints and update MongoDB version in tests. Added var_dump statements for better traceability during OAuth2 flows and adjusted test assertions for user search functionality.
This commit is contained in:
@@ -57,6 +57,14 @@ class Mock extends OAuth2
|
||||
protected function getTokens(string $code): array
|
||||
{
|
||||
if (empty($this->tokens)) {
|
||||
var_dump('Tring to get tokes from url: http://localhost/' . $this->version . '/mock/tests/general/oauth2/token?' .
|
||||
\http_build_query([
|
||||
'client_id' => $this->appID,
|
||||
'redirect_uri' => $this->callback,
|
||||
'client_secret' => $this->appSecret,
|
||||
'code' => $code
|
||||
]));
|
||||
|
||||
$this->tokens = \json_decode($this->request(
|
||||
'GET',
|
||||
'http://localhost/' . $this->version . '/mock/tests/general/oauth2/token?' .
|
||||
@@ -68,7 +76,7 @@ class Mock extends OAuth2
|
||||
])
|
||||
), true);
|
||||
}
|
||||
|
||||
var_dump('@@@@@@@@@');
|
||||
return $this->tokens;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user