# 401 with iOS app

**URL:** <https://help.nextcloud.com/t/401-with-ios-app/9342>\
**Category:** 🍏 iOS\
**Created:** [February 24, 2017, 10:55am UTC](https://help.nextcloud.com/t/401-with-ios-app/9342 "2017-02-24T10:55:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gtrdblt](https://help.nextcloud.com/user_avatar/help.nextcloud.com/gtrdblt/32/7167_2.png) [@gtrdblt](https://help.nextcloud.com/u/gtrdblt)\
**Post date:** [February 24, 2017, 10:55am UTC](https://help.nextcloud.com/t/401-with-ios-app/9342/1 "2017-02-24T10:55:11Z")

</div>

Hi,

I have a problem with the iOS app and nextcloud 11.0.1 .

I’ve enabled the app “Two Factor TOTP Provider” (1.1.0), and now I’ve a 401 error while trying to use the iOS app. I’ve try to use a generated application password as well as my standard password, neither of them work. The authentification works on the standard web UI with 2FA.

When I disable the 2FA, my standard password works using the iOS app.

Here’s my configuration :  
Ubuntu 16.04.2  
php7  
apache2  
postgresql 9.5  
https enabled using letsencrypt

Any ideas ?

Thank you for your help 🙂

---

<div class="post-metadata">

**Author:** ![gtrdblt](https://help.nextcloud.com/user_avatar/help.nextcloud.com/gtrdblt/32/7167_2.png) [@gtrdblt](https://help.nextcloud.com/u/gtrdblt)\
**Post date:** [February 24, 2017, 11:00am UTC](https://help.nextcloud.com/t/401-with-ios-app/9342/2 "2017-02-24T11:00:47Z")

</div>

Ok I’ve a workaround :

I try to generate an application password before enabling the 2FA.  
Then I connect to the iOS app using this password; it works, obviously 🙂

Then I enable the 2FA; and I’m able to connect to the iOS app 🙂

---

<div class="post-metadata">

**Author:** ![ios](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ios/32/1119_2.png) [@ios](https://help.nextcloud.com/u/ios)\
**Post date:** [February 24, 2017, 11:16am UTC](https://help.nextcloud.com/t/401-with-ios-app/9342/3 "2017-02-24T11:16:25Z")

</div>

Hi @gtrdblt please write for all users the correct procedure for using TOTP with mobile device 🙂 Thanks.

---

<div class="post-metadata">

**Author:** ![gtrdblt](https://help.nextcloud.com/user_avatar/help.nextcloud.com/gtrdblt/32/7167_2.png) [@gtrdblt](https://help.nextcloud.com/u/gtrdblt)\
**Post date:** [March 1, 2017, 3:41pm UTC](https://help.nextcloud.com/t/401-with-ios-app/9342/4 "2017-03-01T15:41:20Z")

</div>

Yes 🙂

Here it is :

- Connect yourself to the iOS app, using your user password
- Enable 2FA

If you’ve already enabled 2FA, juste disable it, then connect to the iOS app using your user password, and then re-enable 2FA 🙂

Quite simple, but not that secure ☹

---

<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 14, 2024, 4:19pm UTC](https://help.nextcloud.com/t/401-with-ios-app/9342/5 "2024-12-14T16:19:23Z")

</div>



---

<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 14, 2024, 4:19pm UTC](https://help.nextcloud.com/t/401-with-ios-app/9342/6 "2024-12-14T16:19:25Z")

</div>


