matomo-org / matomo-mobile-2

Matomo Mobile 2 App - The official Git repository! Liberating Web Analytics on the go!
https://matomo.org/mobile
Other
102 stars 31 forks source link

Android unable to login on server with Basic Authentication #5425

Open onelsonic opened 3 years ago

onelsonic commented 3 years ago

When enabling the Htaccess server Authentication (on an Openlitespeed server) the login on the Android App does not works.

Entering the following infos : (using my custom server)

You will get a popup : Enter authentification code. It looks like you may be using two-factor authentication. Please enter the six-digit code to log in to your account.

This popup will show up both if the two-factor authentication is setup or not in the matomo web interface.

And interesting fact is when you browse this URL in a browser :

https://myusername:secret@myserver/matomo/ I can see the Matomo login panel and if I enter (username/password) I can log myself.

So it seems to be a problem with the App. (On iOS same problem but different error message)

So there is a problem with the login process in both App iOS/Android when using a server with Htaccess Authentication.

tsteur commented 3 years ago

@onelsonic any chance you can try if it works when disabling basic authentication on your server?

onelsonic commented 3 years ago
Android : Server Authentification Two-factor authentication (2FA)
ON ON error Two-factor
ON OFF error Two-factor
OFF ON login ok
OFF OFF login ok

And a Server Authentification problem on android.

tsteur commented 3 years ago

Thanks for testing @onelsonic Any chance you're seeing any error messages in the webserver logs when trying to authenticate? All good if you can't check