Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS unable to login when Two factor and Basic Authentication enabled #5424

Open
onelsonic opened this issue Jan 25, 2021 · 5 comments
Open
Labels
Milestone

Comments

@onelsonic
Copy link

onelsonic commented Jan 25, 2021

Login works fine without the Two factor Authentication but when enable the login in the iOS App (and Android App) does not works.
(Also the server uses Htaccess Authentification)
Entering the following infos :

You will get a popup :
There was an error "Cancelled".
The request returned the status "server error". URL was "https://myusername:secret@myserver/matomo/".
Please check your entered URL and the error logs on this server for more information about the error and how to resolve it.

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 Android same problem) Also on android, it ask for a two-factor authentication passcode even if it was not setup and enable in Matomo.

So there is a problem with the login process in both App iOS/Android.

@tsteur
Copy link
Member

tsteur commented Jan 25, 2021

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

@onelsonic
Copy link
Author

onelsonic commented Jan 25, 2021

iOS :

Server Authentification Two-factor authentication (2FA)
ON ON error Cancelled
ON OFF login ok
OFF ON login ok
OFF OFF login ok

so a problem with the Two-factor authentication (2FA) on iOS when the Server Authentification is enable.

@tsteur tsteur added the bug label Jan 25, 2021
@tsteur tsteur added this to the 2.3.0 milestone Jan 25, 2021
@tsteur
Copy link
Member

tsteur commented Jan 25, 2021

Thanks for testing @onelsonic 👍

@tsteur tsteur changed the title iOS unable to login when Two factor Authentication enable iOS unable to login when Two factor and Basic Authentication enabled Jan 25, 2021
@johncadengo
Copy link

I am experiencing issues logging in with 2FA enabled as well. Is there a fix or workaround?

@tsteur
Copy link
Member

tsteur commented Sep 18, 2022

@johncadengo authentication with 2FA should work. Unless you maybe also have additionally server authentication enabled (Basic authentication)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants