Nextcloud iOS app login fails

I’ve been having a strange issue signing in on iOS devices. I have a newly-created Nextcloud setup with a NGINX reverse proxy in front. When I try to sign in to the iOS app using my password, I see “Access Forbidden Invalid request.” When I try signing in via token, I only see a white screen with the close button – No error message. The interesting thing is when I look at my HTTP logs, I can see perfect HTTP 200 status codes being returned and the device shows up in settings, so it looks to be a bug with the iOS app. However, I have an old Nextcloud setup that works just fine with the iOS app, but this one does not have a reverse proxy nor HTTPS. (it was behind a VPN)

  1. This indicates that there is a problem with the reverse proxy. Which mistakes could cause this and what should I check for?
  2. Where could I locate logs for the Nextcloud iOS app which would seriously help my debugging process?

Thank you!

I have similar issues, except that I don’t get any error messages from the app in any case. Since I am also running a reverse proxy, I do wonder if the app login problem is somehow related to that. Would be nice to get an official response.

Indeed… I found that clicking on “Revert to old login method” makes it possible to sign in, but an official bugfix would be great.

Hi veryone,

I have a similar problem to theses folowing :

I installed a brand new nextcloud Official VM server from hanssonIT, everything works well with iOS App when open 80/443 ports on my router directly redirected to this VM.

The problem is when ports are redirected to my Synology NAS using the intergrated reverse proxy to access the nextcloud portal.
It seems that other people face the same probleme with a classical nginx revers proxy.

To be more precise, everything is ok behind the synology reverse proxy through a brower, the problem is only with the mobile iOS App.

Is anyone already saw/solved this issue ?

This problem seems to be over a year old. I just installed nextcloud (July 2020).
I have apache nextcloud running on an RPi server behind an nginx (rPi) reverse proxy. Everything works from both inside using Chrome and outside using Safari. The IOS app asks you to login and then hangs with no error message. If I switch to “use the old login method” it works perfectly.

nload running on my reverse proxy indicates that the app does not even try to send anything to it. Yet with the old login method and safari it does. This appears to be a bug but I don’t know how to report it.

I’m having this problem now, however the fix is not working for me. When I try “Revert to old login method” and enter my credentials I get: “Error, It is not possible to connect to the server at this time. 401: Unauthorized”.

The problem is happening on my iPad. I can log into the webapp just fine, but I need to be able to log into the app to access my files via the share sheet and it will not let me in.

I had the same Problem after reverse Proxy, but I did’t find the “Revert to old login method” thing… so I just add a new app-Password in the web interface under Profile -> Security and select: “add QR-Code for Mobiledevices” and this finally worked as login method … hope it helps somebody else ^^

I was having the same problems. When typing the ip into the login on my iPhone it would say can’t find/locate server. But if you type it logged in just fine even tho the app puts the http:// in automatically

This is still a problem after all this time. I have to assume that the iphone app is no longer being supported.

I somehow managed to login using QR code (other methods failed), then started using the app, got logged out (don’t know why) and now can’t log back in :slight_smile:

When I open the app, I can see the directory structure for 2 seconds (I can even click on stuff) and then get prompted to log in again (this time there is no option to log in via QR code and I can’t log in).

I had to reinstall the app in order to get to ‘revert to old method’ (QR code login).

Was having similar problems. I added proxy_hide_header Upgrade; to the location of my nginx and I was able to login normally. I was actually fixing the “Grant Access” hang on another NC instance and noticed this line from the other conf.

NB: I’m using the linuxserver docker of Nextcloud though. Maybe this will help, maybe not.