astubenbord / paperless-mobile

An (almost) fully fledged mobile paperless client.
GNU General Public License v3.0
609 stars 31 forks source link

[BUG] No login to the server possible #229

Open HHZZUUJH opened 1 year ago

HHZZUUJH commented 1 year ago

Hello,

YunoHost version: 11.1.21.4 (stable) Paperless-ngx for YunoHost version: 1.16.2~ynh2 user to login: superuser

indicated error: The request returnedan invalid status code of 302

Thanks. Best regards

astubenbord commented 12 months ago

Hi, sorry for the late reply. What URL are you trying to log in to paperless with? The url should NOT include the /api/. Otherwise, it may be an issue with the app currently not redirecting.

HHZZUUJH commented 12 months ago

Hello, thank you very much for the answer. I use the URL without /api. It is also sud my view a problem with the redirection.

astubenbord commented 12 months ago

Right, I had to manually enable redirects in the http client. I'll publish an update today

astubenbord commented 11 months ago

Hey, sorry, I've been pretty busy lately, might take a few more days until I get to releasing the update :/

HHZZUUJH commented 11 months ago

Hey, no problem. Now already many thanks for it

astubenbord commented 9 months ago

Could you check if this is fixed in the latest version (3.0.1, available here on GitHub or Google Play open Beta)?

HHZZUUJH commented 8 months ago

Thank you for the new information. I don't get any error message anymore with the mentioned version. The authentication process does not complete for me. But that is because of my system configuration. I use paperless-ngx (server) on a Yunohost. There I have to log on to the Yunohost domain first, and then I am redirected via SSO to the domain of the web server paperless-ngx. This works on my smartphone in the browser. Is it possible to realize this two-step login through paperless-mobil?

astubenbord commented 8 months ago

I've tried integrating solutions like authelia before and didn't get it to work unfortunately.

jedie commented 6 months ago

Maybe i have the same problem. I installed Paperless-ngx 2.1.3 and used the app version 3.1.8. The last log in the app is:

2023-12-26 11:29:36.960 DEBUG   --- [      AuthenticationCubit] - login                    : Trying to log in jens@pl***de...
2023-12-26 11:29:36.961 DEBUG   --- [      AuthenticationCubit] - _addUser                 : Adding new user jens@pl***de..
2023-12-26 11:29:36.961 DEBUG   --- [      AuthenticationCubit] - _addUser                 : Fetching bearer token from the server...

More info in: https://github.com/astubenbord/paperless-mobile/issues/386

jon-alamo commented 5 months ago

Same here. I use paperless-ngx 2.3.3 behind a SSO (authentik) and app version 3.2.0.

2024-01-19 16:17:25.908 DEBUG   --- [      AuthenticationCubit] - login                    : Trying to log in joni@pa***in...
2024-01-19 16:17:25.909 DEBUG   --- [      AuthenticationCubit] - _addUser                 : Adding new user joni@pa***in..
2024-01-19 16:17:25.909 DEBUG   --- [      AuthenticationCubit] - _addUser                 : Fetching bearer token from the server...
jedie commented 1 month ago

Any news here?