Merge pull request #7695 from appwrite/fix-encode-secret-in-oauth-workaround
fix: encode secret in oauth workaround
This commit is contained in:
commit
cc2e4087a1
|
@ -934,12 +934,12 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect')
|
|||
->setPayload($response->output($session, Response::MODEL_SESSION))
|
||||
;
|
||||
|
||||
// TODO: Remove this deprecated, undocumented workaround
|
||||
// TODO: Remove this deprecated workaround - support only token
|
||||
if ($state['success']['path'] == $oauthDefaultSuccess) {
|
||||
$query['project'] = $project->getId();
|
||||
$query['domain'] = Config::getParam('cookieDomain');
|
||||
$query['key'] = Auth::$cookieName;
|
||||
$query['secret'] = $secret;
|
||||
$query['secret'] = Auth::encodeSession($user->getId(), $secret);
|
||||
}
|
||||
|
||||
$response
|
||||
|
|
Loading…
Reference in a new issue