Oauth2 client authentication error (migrate account from Basic Authorization to OAuth2)

Expected behaviour

Tell us what should happen
Client should open a browser window to authenticate with Oauth2.

Actual behaviour

Tell us what happens instead

Steps to reproduce

  1. Install oC Client 2.9.0
  2. Add an Account
  3. In ownCloud install the app Oauth2 and the app twofactor_totp
  4. Add the following entry to the configuration: ‘token_auth_enforced’ => true,
  5. Restart the client
  6. See the error

Server configuration

Operating system:
Raspbian GNU/Linux 10 (buster)
Web server:
Apache/2.4.38 (Raspbian)
15.1 Distrib 10.3.29-MariaDB
PHP version:
ownCloud version:
Storage backend (external storage):

Client configuration

Client version:
Operating system:
Windows 10
OS language:
Qt version used by client package (Linux only, see also Settings dialog):

Client package (From ownCloud or distro) (Linux only):

Installation path of client:


 {\"installed\":true,\"maintenance\":false,\"needsDbUpgrade\":false,\"version\":\"\",\"versionstring\":\"10.8.0\",\"edition\":\"Community\",\"productname\":\"Test Cloud\"}]"
    10-01 09:12:26:539 [ info sync.networkjob.checkserver ]:	status.php returns:  QJsonDocument({"edition":"Community","installed":true,"maintenance":false,"needsDbUpgrade":false,"productname":"Test Blindbau Cloud","version":"","versionstring":"10.8.0"})   QNetworkReply::NoError  Reply:  QNetworkReplyHttpImpl(0x20d6dd4c720)
    10-01 09:12:26:539 [ info sync.connectionvalidator ]:	** Application: ownCloud found:  QUrl("")  with version  "10.8.0" ( " Cloud" )
    10-01 09:12:26:539 [ debug sync.networkjob ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job finished OCC::CheckServerJob("", "a663e098-2c5c-4c28-ab52-ac75611c15b5", "a663e098-2c5c-4c28-ab52-ac75611c15b5")
    10-01 09:12:26:539 [ info gui.account.state ]:	AccountState connection status change:  OCC::ConnectionValidator::Undefined -> OCC::ConnectionValidator::CredentialsNotReady
    10-01 09:12:26:539 [ info gui.account.state ]:	Invalid credentials for "" asking user
    10-01 09:12:26:539 [ info gui.account.state ]:	AccountState state change:  "Getrennt" -> "Zugangsdaten werden abgefragt"

Please use Gist (https://gist.github.com/) or a similar code paster for longer

Template for output < 10 lines

  1. Client logfile: Output of owncloud --logwindow or owncloud --logfile log.txt
    (On Windows using cmd.exe, you might need to first cd into the ownCloud directory)
    (See also http://doc.owncloud.org/desktop/2.2/troubleshooting.html#client-logfile )

  2. Web server error log:

  3. Server logfile: ownCloud log (data/owncloud.log):

You need HTTPS connection. This won’t work: ("")

Thanks for your quick reply.
Good point, I will test this again.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.