OAuth: clear refresh token when the server claim not to support oauth
authorOlivier Goffart <ogoffart@woboq.com>
Mon, 24 Jul 2017 10:00:29 +0000 (12:00 +0200)
committerOlivier Goffart <olivier@woboq.com>
Tue, 25 Jul 2017 10:34:13 +0000 (12:34 +0200)
commit6ae88514d8fe875751300ebf5c746a4e7e8a9eb5
tree37d85b977ddc8c7d720d6923fcd93b604c536db2
parentc043840cb19fca81a56e87e32465388011da6b55
OAuth: clear refresh token when the server claim not to support oauth

Allow upgrade path when the server removes support for oauth
Relates: https://github.com/owncloud/client/issues/5848#issuecomment-317353049

We also need to force the account to commit the config to the disk,
otherwise we may not register we are no longer using owncloud and we
risk sending the password as the token to the token refresh API call
src/gui/creds/httpcredentialsgui.cpp
src/libsync/creds/httpcredentials.cpp