# Connection Wizard is looping between "Log in" and "Grant access"

**URL:** <https://help.nextcloud.com/t/connection-wizard-is-looping-between-log-in-and-grant-access/46809>\
**Category:** ℹ️ Support\
**Tags:** windows\
**Created:** [February 3, 2019, 8:54pm UTC](https://help.nextcloud.com/t/connection-wizard-is-looping-between-log-in-and-grant-access/46809 "2019-02-03T20:54:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ernashil](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ernashil/32/13345_2.png) [@ernashil](https://help.nextcloud.com/u/ernashil)\
**Post date:** [February 3, 2019, 8:54pm UTC](https://help.nextcloud.com/t/connection-wizard-is-looping-between-log-in-and-grant-access/46809/1 "2019-02-03T20:54:04Z")

</div>

I have a working installation of Nextcloud 15 (in a docker container, behind a nginx reverse proxy over https), and the iOS app has no pb connecting to it, as well as the web interface.

When running the connection wizard from the Windows 10 Installer, I enter my login/password and the wizard then asks to grant access to Mozilla/5.0. I grant the access, but from there, it loops back to the login page “Connect to your account”, and then again to grant access, and so on for ever.

I have no idea what is going on. Could it be related to the fact that my nextcloud container listens to port 80, and “sees” https only through the reverse proxy?

NB: the alternative “log in using app token”, once provided with a valid token obtained from the settings of the web interface, fails an returns a 405 error.

Thanks a lot for your help!  
Ernashil

---

<div class="post-metadata">

**Author:** ![xotox91](https://help.nextcloud.com/letter_avatar/xotox91/32/5_5575768a8748004e209b776fc1b2916d.png) [@xotox91](https://help.nextcloud.com/u/xotox91)\
**Post date:** [February 4, 2019, 9:38am UTC](https://help.nextcloud.com/t/connection-wizard-is-looping-between-log-in-and-grant-access/46809/2 "2019-02-04T09:38:43Z")

</div>

That could be the reverse proxy. I had the same problem. The solution for me was to add the ‘overwriteprotocol’ variable to config.php and set it to “https”. See: [server/config/config.sample.php at master · nextcloud/server · GitHub](https://github.com/nextcloud/server/blob/master/config/config.sample.php#L456-L463)

Unfortunately, I ran directly into the next problem with it:

> [@NextCloud 15: desktop client version 2.3.3.1 works, meanwhile 2.5.x doesn't work](https://help.nextcloud.com/t/nextcloud-15-desktop-client-version-2-3-3-1-works-meanwhile-2-5-x-doesnt-work/45479):
>
> Now we are running nextcloud 15.0.2 and login users via SAMLv2 with a universities federation services that redirect our login queries. The web client and the android client work correctly. But desktop client Windows and linux only work with client version 2.3.3.1, meanwhile 2.5.x don’t work. It get stuck on the grant acces page.

---

<div class="post-metadata">

**Author:** ![ernashil](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ernashil/32/13345_2.png) [@ernashil](https://help.nextcloud.com/u/ernashil)\
**Post date:** [February 8, 2019, 9:42pm UTC](https://help.nextcloud.com/t/connection-wizard-is-looping-between-log-in-and-grant-access/46809/3 "2019-02-08T21:42:22Z")

</div>

Dear xotox91,  
Thanks a lot for the overwriteprotocol idea, it solved my problem!  
Cheers,  
Ernashil

---

<div class="post-metadata">

**Author:** ![ertomas](https://help.nextcloud.com/letter_avatar/ertomas/32/5_5575768a8748004e209b776fc1b2916d.png) [@ertomas](https://help.nextcloud.com/u/ertomas)\
**Post date:** [March 27, 2019, 3:18pm UTC](https://help.nextcloud.com/t/connection-wizard-is-looping-between-log-in-and-grant-access/46809/4 "2019-03-27T15:18:06Z")

</div>

I had the same issue and this fixed it for me too. Thanks.

---

<div class="post-metadata">

**Author:** ![vita](https://help.nextcloud.com/user_avatar/help.nextcloud.com/vita/32/8501_2.png) [@vita](https://help.nextcloud.com/u/vita)\
**Post date:** [March 28, 2019, 7:03pm UTC](https://help.nextcloud.com/t/connection-wizard-is-looping-between-log-in-and-grant-access/46809/5 "2019-03-28T19:03:16Z")

</div>

Me too, thank you! \<3  
I wasn’t going through a revproxy–_at least not on the intranet_–but it still worked. Thanks! 😃

---

<div class="post-metadata">

**Author:** ![Romique](https://help.nextcloud.com/user_avatar/help.nextcloud.com/romique/32/14665_2.png) [@Romique](https://help.nextcloud.com/u/Romique)\
**Post date:** [April 14, 2019, 3:20pm UTC](https://help.nextcloud.com/t/connection-wizard-is-looping-between-log-in-and-grant-access/46809/6 "2019-04-14T15:20:55Z")

</div>

The `overwriteprotocol` solution helped me as well, thank you!  
This can vary for others, but for reference here’s what I had to do to stick this change into my docker container:

```auto
docker exec -it nextcloud /bin/bash
apt-get update
apt-get install -y vim
cd config/
vim config.php
insert the line: 'overwriteprotocol' => 'https',

```

---

<div class="post-metadata">

**Author:** ![Hisma](https://help.nextcloud.com/user_avatar/help.nextcloud.com/hisma/32/16607_2.png) [@Hisma](https://help.nextcloud.com/u/Hisma)\
**Post date:** [July 20, 2019, 2:29am UTC](https://help.nextcloud.com/t/connection-wizard-is-looping-between-log-in-and-grant-access/46809/7 "2019-07-20T02:29:06Z")

</div>

I used the overwriteprotocol solution and it worked. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [September 23, 2024, 5:10pm UTC](https://help.nextcloud.com/t/connection-wizard-is-looping-between-log-in-and-grant-access/46809/8 "2024-09-23T17:10:25Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 2:22pm UTC](https://help.nextcloud.com/t/connection-wizard-is-looping-between-log-in-and-grant-access/46809/9 "2024-12-11T14:22:43Z")

</div>


