nextcloud-desktop/src
Olivier Goffart 0155a4fa73
Wizard + OAuth: Make opening a new browser after clicking back works again
Issue #6574

When there is an error in the advanced page, OwncloudAdvancedSetupPage::updateStatus
(and others) call completeChanged(), which is connected to
QWizardPrivate::_q_updateButtonStates which will re-enable the back button from the
last page.

When the user click "back" and re-open the browser, the account's credentials
already have a oauth token set. So the call to the API to get a new token fails
because we use the previous token instead of using the client's secret_id.
Fix this with the HttpCredentials::DontAddCredentialsAttribute.

Now, this is still not working because the session cookies are confusing the
server.  So we'll clear the cookies when re-opening the browser
2020-12-15 10:57:55 +01:00
..
3rdparty Enable bugprone-narrowing-conversions clang-tidy check 2020-09-01 06:37:03 +00:00
cmd Partial Revert "Adapted for cmd version and added migration step for config file" 2020-11-10 17:46:43 +00:00
common Virtual Files: Allow to download a folder recursively from the socket API 2020-12-15 10:57:54 +01:00
crashreporter macOS: Use macdeployqt instead of the old admin/osx/macdeployqt.py 2020-06-07 14:39:42 +02:00
csync csync: refactor csync_s::error_string to avoid valgrind error 2020-12-15 10:57:55 +01:00
gui Wizard + OAuth: Make opening a new browser after clicking back works again 2020-12-15 10:57:55 +01:00
libsync csync: refactor csync_s::error_string to avoid valgrind error 2020-12-15 10:57:55 +01:00
CMakeLists.txt Windows: Enable CFG and SafeSEH linker security flags 2020-08-03 10:11:33 +02:00