Merge pull request #11090 from nextcloud/backport/11082/stable14
[stable14] Do not invalidate main token on OAuth
This commit is contained in:
commit
e296f7d348
|
@ -366,10 +366,10 @@ class ClientFlowLoginController extends Controller {
|
||||||
|
|
||||||
$serverPath = $protocol . "://" . $this->request->getServerHost() . $serverPostfix;
|
$serverPath = $protocol . "://" . $this->request->getServerHost() . $serverPostfix;
|
||||||
$redirectUri = 'nc://login/server:' . $serverPath . '&user:' . urlencode($loginName) . '&password:' . urlencode($token);
|
$redirectUri = 'nc://login/server:' . $serverPath . '&user:' . urlencode($loginName) . '&password:' . urlencode($token);
|
||||||
}
|
|
||||||
|
|
||||||
// Clear the token from the login here
|
// Clear the token from the login here
|
||||||
$this->tokenProvider->invalidateToken($sessionId);
|
$this->tokenProvider->invalidateToken($sessionId);
|
||||||
|
}
|
||||||
|
|
||||||
return new Http\RedirectResponse($redirectUri);
|
return new Http\RedirectResponse($redirectUri);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue