nextcloud-desktop/src/gui
Olivier Goffart 15eab07866
OAuth2: Store 'Account::davUser' in the config, and use that user for connecting
We need to use the user id to check if we are connected to the right account.
These might be different from the HTTP Basic Auth login. (LDAP setups)

When the account was configured as an oauth2 account form the wisard, the
http_user was already set correctly to the user id. But when the server is
upgrading from basic auth to oauth2, we need to pick the right login.

Note that Account::davUser() already defaults to the HTTP user when none
is set, so this means the upgrade will be fine if this is not set in the
config.

Issues:
https://github.com/owncloud/oauth2/issues/109
https://github.com/owncloud/enterprise/issues/2781
2020-12-15 10:58:11 +01:00
..
cloudproviders Enable the modernize-use-using check on clang-tidy 2020-08-12 18:18:57 +02:00
creds OAuth2: Store 'Account::davUser' in the config, and use that user for connecting 2020-12-15 10:58:11 +01:00
tray Ensure a sync happens after a conflict resolution 2020-12-15 09:40:57 +00:00
updater Please the clang-tidy overlord 2020-11-24 18:22:33 +00:00
wizard Wizard + OAuth: Make opening a new browser after clicking back works again 2020-12-15 10:57:55 +01:00
accountmanager.cpp OAuth2: Store 'Account::davUser' in the config, and use that user for connecting 2020-12-15 10:58:11 +01:00
accountmanager.h Settings migration: Preserve future settings where possible 2020-12-15 10:57:54 +01:00
accountsettings.cpp AccountSetting: Fix Small Memoy leak 2020-12-15 10:58:06 +01:00
accountsettings.h Have the new account wizard open again 2020-12-14 15:58:52 +01:00
accountsettings.ui Handle the warning message when unchecking folders for syncing. 2020-12-14 12:36:51 +01:00
accountstate.cpp Fetch apps when we get connected only 2020-11-05 13:37:25 +01:00
accountstate.h Enable the modernize-user-nullptr check on clang-tidy 2020-08-12 19:45:25 +02:00
addcertificatedialog.cpp Apply clang-format 2017-05-17 12:26:27 +02:00
addcertificatedialog.h GUI: run clang-tidy modernize-use-nullptr 2018-11-11 10:56:22 +01:00
addcertificatedialog.ui l10n: Removed blank before colon 2020-02-24 11:10:05 +01:00
application.cpp Settings migration: Preserve future settings where possible 2020-12-15 10:57:54 +01:00
application.h Settings migration: Preserve future settings where possible 2020-12-15 10:57:54 +01:00
authenticationdialog.cpp Use auto to avoiding repeating type names 2020-05-20 03:54:41 +02:00
authenticationdialog.h GUI: run clang-tidy modernize-use-nullptr 2018-11-11 10:56:22 +01:00
CMakeLists.txt Install libocsync to lib/ without subfolder. 2020-12-15 10:57:56 +01:00
cocoainitializer.h Apply clang-format 2017-05-17 12:26:27 +02:00
cocoainitializer_mac.mm License: Adjust license of GPLv2 source files to GPLv2+ 2016-10-25 11:06:54 +02:00
conflictdialog.cpp Remove last left over of the "remote" wording 2020-10-26 14:45:46 +00:00
conflictdialog.h Add a conflict dialog to help the user solve them 2020-10-22 16:40:46 +02:00
conflictdialog.ui Add a conflict dialog to help the user solve them 2020-10-22 16:40:46 +02:00
conflictsolver.cpp Add KeepBothVersions as a possible solution to ConflictSolver 2020-10-22 16:40:46 +02:00
conflictsolver.h Add KeepBothVersions as a possible solution to ConflictSolver 2020-10-22 16:40:46 +02:00
connectionvalidator.cpp Fix libsync exports for proxy changes in #1886 2020-06-18 21:05:11 +02:00
connectionvalidator.h Add UserInfo class and fetch quota via API instead of PropfindJob 2020-02-14 02:10:01 +01:00
elidedlabel.cpp Remove redundant initialization of ElidedLabel::_elideMode 2020-07-08 14:08:41 +02:00
elidedlabel.h Use default member init when applicable 2020-06-03 16:10:39 +02:00
folder.cpp Remove the backup deteciton code which was used for server < 9.1 2020-12-15 10:58:10 +01:00
folder.h Remove the backup deteciton code which was used for server < 9.1 2020-12-15 10:58:10 +01:00
folderman.cpp Settings migration: Preserve future settings where possible 2020-12-15 10:57:54 +01:00
folderman.h Settings migration: Preserve future settings where possible 2020-12-15 10:57:54 +01:00
folderstatusdelegate.cpp Account Settings: Add a text for folder using vierual files 2020-12-15 10:58:04 +01:00
folderstatusdelegate.h Account Settings: Add a text for folder using vierual files 2020-12-15 10:58:04 +01:00
folderstatusmodel.cpp Virtual files: Don't show selective sync 2020-12-15 10:58:06 +01:00
folderstatusmodel.h Remove unused method 2020-08-13 12:55:14 +00:00
folderstatusview.cpp Use the return braced init list pattern 2020-05-27 14:36:07 +02:00
folderstatusview.h Make the "Add Folder Sync Connection" button act like a button 2018-10-31 20:05:14 +01:00
folderwatcher.cpp FolderWatcher: Disable test on OSX #7305 2020-11-24 16:56:49 +00:00
folderwatcher.h FolderWatcher: Usage of QTime for elapsed time is deprecated 2020-11-24 16:56:49 +00:00
folderwatcher_linux.cpp FolderWatcher: Become unreliable if test notification fails #7241 2020-11-24 16:56:49 +00:00
folderwatcher_linux.h FolderWatcher: Wait for ready before testing #7305 2020-11-24 16:56:49 +00:00
folderwatcher_mac.cpp Also output the event flags in the debug logs 2020-10-26 12:37:00 +00:00
folderwatcher_mac.h FolderWatcher: Wait for ready before testing #7305 2020-11-24 16:56:49 +00:00
folderwatcher_win.cpp Add debug log to check which folders are being skipped during syncing. 2020-12-03 12:24:25 +01:00
folderwatcher_win.h FolderWatcher: Wait for ready before testing #7305 2020-11-24 16:56:49 +00:00
folderwizard.cpp Folder Wizard: Disable the 'choose what to sync' treeview if virtual files are selected 2020-12-15 10:58:07 +01:00
folderwizard.h Rename Placeholders to Virtual Files in code #6531 2020-12-15 10:57:53 +01:00
folderwizardsourcepage.ui l10n: Triple dot to ellipsis 2020-02-05 06:50:27 +01:00
folderwizardtargetpage.ui l10n: Change case of one word 2020-02-24 11:08:56 +01:00
generalsettings.cpp Fix build without Sparkle.framework 2020-11-25 09:40:20 +01:00
generalsettings.h Settings: Add update channel combobox #6259 2020-11-24 18:22:33 +00:00
generalsettings.ui Settings: Add update channel combobox #6259 2020-11-24 18:22:33 +00:00
gui.md
guiutility.cpp Prepend "nextcloud" for all logging categories 2017-12-28 17:33:10 -02:00
guiutility.h Introduce private link sharing #5023 2017-07-07 10:49:51 +02:00
headerbanner.cpp Update comments 2020-10-15 02:18:52 +02:00
headerbanner.h Update comments 2020-10-15 02:18:52 +02:00
iconjob.cpp Free IconJob after use 2020-09-28 12:30:53 +02:00
iconjob.h GUI: run clang-tidy modernize-use-nullptr 2018-11-11 10:56:22 +01:00
ignorelisteditor.cpp Never ignore .sync-exclude, even if excludeHidden 2019-08-15 03:00:26 +01:00
ignorelisteditor.h Extract IgnoreListTableWidget to be reused 2019-08-15 03:00:26 +01:00
ignorelisteditor.ui Extract IgnoreListTableWidget to be reused 2019-08-15 03:00:26 +01:00
ignorelisttablewidget.cpp Do not declare local variables without an initial value. 2020-06-03 07:50:40 +00:00
ignorelisttablewidget.h Extract IgnoreListTableWidget to be reused 2019-08-15 03:00:26 +01:00
ignorelisttablewidget.ui Fixed some missing 'translatable' exclusions, added missing window titles in flow dialogs 2019-09-25 14:02:59 +02:00
legalnotice.cpp Settings dialog: Move detailed version info from About section to Legal notice dialog 2020-03-07 06:45:41 +01:00
legalnotice.h Settings dialog: Move detailed version info from About section to Legal notice dialog 2020-03-07 06:45:41 +01:00
legalnotice.ui Fix Legal notice dialog: Correct title and header font 2020-03-09 00:41:59 +01:00
lockwatcher.cpp Prepend "nextcloud" for all logging categories 2017-12-28 17:33:10 -02:00
lockwatcher.h GUI: run clang-tidy modernize-use-nullptr 2018-11-11 10:56:22 +01:00
logbrowser.cpp Enable the modernize-deprecated-headers check on clang-tidy 2020-08-13 14:53:52 +02:00
logbrowser.h GUI: search'n'replace remaining "Q_DECL_OVERRIDE" with "override" 2018-11-11 11:12:37 +01:00
main.cpp Use native text rendering for qml windows 2020-09-23 08:00:46 +00:00
manifest-mingw.rc Add manifest file on Windows to make the application UAC aware. 2016-11-14 12:16:58 +01:00
mnemonicdialog.ui Fixed some missing 'translatable' exclusions, added missing window titles in flow dialogs 2019-09-25 14:02:59 +02:00
navigationpanehelper.cpp Misc fixes for Windows 7 2020-10-28 06:24:53 +00:00
navigationpanehelper.h Windows: Add a setting to enable/disable the explorer navigation pane integration 2017-10-24 16:10:53 +02:00
networksettings.cpp Use the return braced init list pattern 2020-05-27 14:36:07 +02:00
networksettings.h GUI: run clang-tidy modernize-use-nullptr 2018-11-11 10:56:22 +01:00
networksettings.ui l10n: Removed colon from translation 2020-02-24 11:13:34 +01:00
notificationconfirmjob.cpp Removes unused NotificationWidget class. 2018-08-13 15:17:40 +02:00
notificationconfirmjob.h GUI: search'n'replace remaining "Q_DECL_OVERRIDE" with "override" 2018-11-11 11:12:37 +01:00
ocsjob.cpp Use auto to avoiding repeating type names 2020-05-20 03:54:41 +02:00
ocsjob.h GUI: search'n'replace remaining "Q_DECL_OVERRIDE" with "override" 2018-11-11 11:12:37 +01:00
ocsnavigationappsjob.cpp Adds function to add raw header to the request. 2018-05-07 18:03:42 +02:00
ocsnavigationappsjob.h Adds function to add raw header to the request. 2018-05-07 18:03:42 +02:00
ocsshareejob.cpp Fixed slow sharee search in the share dialog 2020-12-08 13:48:43 +00:00
ocsshareejob.h Fixed slow sharee search in the share dialog 2020-12-08 13:48:43 +00:00
ocssharejob.cpp Enable all the misc clang-tidy check except one 2020-08-31 09:14:09 +02:00
ocssharejob.h Finishing PR #1154 adding note when sharing 2019-09-18 13:37:49 +02:00
openfilemanager.cpp Use raw string literals when appropriate 2020-05-26 20:13:51 +02:00
openfilemanager.h License: Adjust license of GPLv2 source files to GPLv2+ 2016-10-25 11:06:54 +02:00
owncloud.exe.manifest-mingw Add manifest file on Windows to make the application UAC aware. 2016-11-14 12:16:58 +01:00
owncloud.xml.in Virtual Files Mime Type: use "vnd." prefix instead of "x-" 2020-12-15 10:58:03 +01:00
owncloudgui.cpp Update the minimum supported version 2020-12-15 10:58:05 +01:00
owncloudgui.h Move pause/unpause helpers to Systray 2020-11-10 17:29:51 +00:00
owncloudsetupwizard.cpp Rename Placeholders to Virtual Files in code #6531 2020-12-15 10:57:53 +01:00
owncloudsetupwizard.h GUI: run clang-tidy modernize-use-nullptr 2018-11-11 10:56:22 +01:00
proxyauthdialog.cpp Apply clang-format 2017-05-17 12:26:27 +02:00
proxyauthdialog.h GUI: run clang-tidy modernize-use-nullptr 2018-11-11 10:56:22 +01:00
proxyauthdialog.ui Fixed some missing 'translatable' exclusions, added missing window titles in flow dialogs 2019-09-25 14:02:59 +02:00
proxyauthhandler.cpp Get rid of FindQt5Keychain.cmake 2020-11-02 13:19:48 +01:00
proxyauthhandler.h ProxyAuthHandler: Add template member function execAwait to avoid code duplication 2020-07-06 21:51:40 +02:00
remotewipe.cpp Enable all the misc clang-tidy check except one 2020-08-31 09:14:09 +02:00
remotewipe.h Once client gets 401/403 from the server, check if remote wipe was requested. 2019-10-17 20:11:31 +02:00
selectivesyncdialog.cpp Reduce interaction with e2ee folders when in the wizard 2020-07-01 16:58:29 +00:00
selectivesyncdialog.h Don't use nullptr for QFlags 2020-10-12 11:52:53 +00:00
settingsdialog.cpp Repair SettingsDialog::showIssuesList 2020-10-22 16:40:46 +02:00
settingsdialog.h Gigantic ton of changes and deletions: ActivityListModel, tray GUI, Account logic. 2020-01-03 13:09:29 +01:00
settingsdialog.ui Gigantic ton of changes and deletions: ActivityListModel, tray GUI, Account logic. 2020-01-03 13:09:29 +01:00
settingsdialogcommon.cpp Fix typo 2019-10-01 08:25:24 +02:00
sharedialog.cpp Share dialog: use the original name and not the virtual file name 2020-12-15 10:57:54 +01:00
sharedialog.h ShareDialog: Pointer cosmetics 2020-05-29 20:57:52 +02:00
sharedialog.ui resolving conflict with current master 2019-10-29 14:07:26 +01:00
sharee.cpp Fixed slow sharee search in the share dialog 2020-12-08 13:48:43 +00:00
sharee.h Fixed slow sharee search in the share dialog 2020-12-08 13:48:43 +00:00
sharelinkwidget.cpp Stop the animation if we got an error message 2020-10-19 14:33:19 +00:00
sharelinkwidget.h Code cleanup 2020-02-14 03:00:20 +01:00
sharelinkwidget.ui Cleanup/Removal/Adaption/Update to resource files and crresponding code, esp. regarding svg usage 2020-01-18 17:47:17 +01:00
sharemanager.cpp Emit last to avoid use after delete crash 2020-10-19 14:33:19 +00:00
sharemanager.h Added sharing via email. 2020-12-08 11:08:45 +02:00
sharepermissions.h Display the correct default permissions when creating a share. 2020-07-08 18:15:36 +02:00
shareusergroupwidget.cpp Fixed slow sharee search in the share dialog 2020-12-08 13:48:43 +00:00
shareusergroupwidget.h Fixed slow sharee search in the share dialog 2020-12-08 13:48:43 +00:00
shareusergroupwidget.ui Merge branch 'master' into resource-cleanup 2020-03-01 05:34:12 +01:00
shareuserline.ui Merge branch 'master' into resource-cleanup 2020-03-01 05:34:12 +01:00
socketapi.cpp Socket API: add an option to replace existing files with virtual files 2020-12-15 10:58:06 +01:00
socketapi.h Socket API: add an option to replace existing files with virtual files 2020-12-15 10:58:06 +01:00
socketapisocket_mac.h
socketapisocket_mac.mm
sslbutton.cpp Use auto to avoiding repeating type names 2020-05-20 03:54:41 +02:00
sslbutton.h GUI: run clang-tidy modernize-use-nullptr 2018-11-11 10:56:22 +01:00
sslerrordialog.cpp Use auto to avoiding repeating type names 2020-05-20 03:54:41 +02:00
sslerrordialog.h GUI: search'n'replace remaining "Q_DECL_OVERRIDE" with "override" 2018-11-11 11:12:37 +01:00
sslerrordialog.ui Marking unused strings as unstranslatable 2019-05-14 20:07:08 +02:00
synclogdialog.cpp Use = default for trivial ctors and dtors 2020-05-25 21:33:24 +02:00
synclogdialog.h GUI: run clang-tidy modernize-use-nullptr 2018-11-11 10:56:22 +01:00
synclogdialog.ui
syncrunfilelog.cpp SyncRunFileLog: Add the requestid 2020-12-15 10:57:53 +01:00
syncrunfilelog.h changed paths of logfiles 2018-04-17 15:54:05 +02:00
systray.cpp Have the new account wizard open again 2020-12-14 15:58:52 +01:00
systray.h Fix macOS bug where tray window causes spaces to switch 2020-12-02 06:54:16 +00:00
systray.mm Fix macOS bug where tray window causes spaces to switch 2020-12-02 06:54:16 +00:00
thumbnailjob.cpp Apply clang-format 2017-05-17 12:26:27 +02:00
thumbnailjob.h GUI: search'n'replace remaining "Q_DECL_OVERRIDE" with "override" 2018-11-11 11:12:37 +01:00
tooltipupdater.cpp Use auto to avoiding repeating type names 2020-05-20 03:54:41 +02:00
tooltipupdater.h GUI: search'n'replace remaining "Q_DECL_OVERRIDE" with "override" 2018-11-11 11:12:37 +01:00
userinfo.cpp Update comments 2020-10-15 02:18:52 +02:00
userinfo.h Update comments 2020-10-15 02:18:52 +02:00
version.rc.in Use correct values for items in version.rc 2016-02-17 14:16:29 +01:00