matteo-convertino / otpmanager-nextcloud

Nextcloud app that allows you to manage your OTP (TOTP/HOTP) codes easily
GNU Affero General Public License v3.0
25 stars 5 forks source link

iOS App Sync Error after NC OTP Manager Update to 0.5.3 #45

Open martintm86 opened 4 months ago

martintm86 commented 4 months ago

Hi, after update to the newest OTP Manager on my Nextcloud. The iOS App can not sync anymore. I have reseted the app and now it does not accept the encryption Password with the Error: "You need to set a password before. Please update the OTP Manager extension on your Nextcloud server to version 0.3.0 or higher." Access with my Computer by Browser is OK. iOS App is the newest 1.3.2

kind regards

Timithius commented 4 months ago

I am seeing the same issue as of a couple of days ago and was just about to open an issue myself. It seems as though the newest update breaks the iOS app. I'm going to try rolling back to version 0.4.0 to see if that fixes things and will report back.

Timithius commented 4 months ago

Update:

I am able to confirm that rolling back to 0.4.0 fixed my issue. Higher versions in between 0.4.0 and 0.5.3 may be working but I haven't tested.

If anyone needs any information or configuration from my NC installation, please let me know! I really enjoy your app would be more than happy to help fix this.

martintm86 commented 4 months ago

And how can i Downgrade? My Nc automaticliy update the app when i copy an old version to apps folder....

matteo-convertino commented 4 months ago

I think this is duplicate of https://github.com/matteo-convertino/otpmanager-nextcloud/issues/44

martintm86 commented 4 months ago

Oh ok sorry. i have not seen because it was closed. what is the problem? When comes a compatible ios app?

Timithius commented 4 months ago

@matteo-convertino thanks for the info, I should've checked the closed issues. I wasn't aware that you were not the maintainer of the iOS app.

@martintm86 he is not the author of the iOS app, so must wait for an update from the app's author Manpreet Singh. You should be able to downgrade by downloading 0.4.0, disabling the current version in the NC admin panel, and copying the downloaded 0.4.0 files to /var/www/html/custom_apps. You'll then see the correct version on the apps page in the admin panel.

matteo-convertino commented 4 months ago

I will leave this issue open, so that it can be easily seen by others who have this problem.

ovimano commented 3 months ago

Same issue here:

image

And after I type the password:

image

The nexcloud app is working, the server is up and running. The app from server is ok and the password is set in the app on the server.

merkch commented 1 month ago

ok. so you closed the other one... fine... I think I found the issue ;) at /var/www/nextcloud/apps/ the optmanager lives at "otpmanager" ... BUT the app tries to find the home at "opt_manager" ... it's hard coded... pls correct it... thnx... seems to be an easy issue :*

MiKom commented 1 month ago

Thanks for info. I now see that the iOS application is trying to do POST to /index.php/apps/otpmanager/password/check which gives 404 so it seems to be using the proper otpmanager endpoint.

Anyways, the iOS application seems unmaintained. Last build by Manpreet Singh is from 7 months ago from version 1.3.2.

@matteo-convertino do you have any contact with Manpreet? I'm wondering if the iOS version is now abandoned and whether I should look for ways to do something about it.

matteo-convertino commented 1 month ago

I now see that the iOS application is trying to do POST to /index.php/apps/otpmanager/password/check which gives 404 so it seems to be using the proper otpmanager endpoint. Anyways, the iOS application seems unmaintained. Last build by Manpreet Singh is from 7 months ago from version 1.3.2.

Yes exactly. The problem is that, going forward with the versions, I updated the endpoints on the backend (nextcloud extension). So now the latest version available on the app store is no longer capable of doing anything.

@matteo-convertino do you have any contact with Manpreet? I'm wondering if the iOS version is now abandoned and whether I should look for ways to do something about it.

I practically have no contact with him anymore. The last message was on February 7th. I would also be willing to pay the 99 dollars per year to publish the app, but I still have the problem because I don't have a Mac to be able to test and build the app.

merkch commented 1 month ago

ok... I'll contact you... are you in Italy or China --- timezonewise ;)

pgmillon commented 1 month ago

Hi, maybe there are ways like https://www.macincloud.com/ or http://virtualmacosx.com/ can help building the app without owning a mac

matteo-convertino commented 1 month ago

It's a very valid solution but, honestly, it would be an excessive expense. I have no profit from this project.

MiKom commented 1 month ago

@matteo-convertino I was wondering if using such a service like @pgmillon linked only briefly to set everything up with developer and store account and then switching to GitHub Actions would make sense? otpmanager is open source so it's eligible for macOS build minutes on GitHub Actions

I've never done it myself but I've seen some guides about testflight uploads, notarization etc. in GitHub Actions. So maybe that could be the low-cost solution?

rcarlier33 commented 2 weeks ago

Do you know the latest version of otpmanager-nextcloud compatible with the IOS app ? Edit: I looked in the code and I see that the password#check route disappeared after v0.4.0 so I think I have my answer. [https://github.com/matteo-convertino/otpmanager-nextcloud/releases/tag/v0.4.0] @matteo-convertino: No way to make it compatible by putting this route back?

In any case, many thanks for all this work and this wonderful extension.