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
image

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)
Database:
15.1 Distrib 10.3.29-MariaDB
PHP version:
7.3.29-1~deb10u1
ownCloud version:
10.8.0
Storage backend (external storage):
no

Client configuration

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

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

Installation path of client:

Logs

 {\"installed\":true,\"maintenance\":false,\"needsDbUpgrade\":false,\"version\":\"10.8.0.4\",\"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":"10.8.0.4","versionstring":"10.8.0"})   QNetworkReply::NoError  Reply:  QNetworkReplyHttpImpl(0x20d6dd4c720)
    10-01 09:12:26:539 [ info sync.connectionvalidator ]:	** Application: ownCloud found:  QUrl("http://192.168.0.2/owncloud/")  with version  "10.8.0" ( "10.8.0.4-Test Cloud" )
    10-01 09:12:26:539 [ debug sync.networkjob ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job finished OCC::CheckServerJob("http://192.168.0.2/owncloud/status.php", "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 "http://192.168.0.2/owncloud/" 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
logs.

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: ("http://192.168.0.2/owncloud/")

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