Yannis4444 / Orange-Share

A small python server that accepts requests from an Apple shortcut to allow sharing all sorts of media from iOS with any desktop OS. It allows sending content right from the share sheet - similar to AirDrop between Apple Devices
MIT License
49 stars 3 forks source link

Username/Password after devices have been added #19

Closed sannagy90 closed 2 years ago

sannagy90 commented 3 years ago

After adding a device and restarting the server, the server will ask for Username/Password.

What should be provided here?

I tried using "device" for the username and the id (from the config file) belonging to my phone as the password and I get the following.

image

Yannis4444 commented 3 years ago

I implemented basic auth so that only connected devices can send content to the server. In the process there was an error where not only the API for the iPhone/iPad was protected by this, but also the user interface. This was not intended and should never have happened.

In the newest version this should be fixed. You will probably have to update the server (for Windows download the newest .exe, for other systems git pull and then pip install .) and the shortcuts (the easiest way is to scan the QR codes in the interface after updating).

If you are using the GNOME Shell Extension this problem might be caused by an older version of the extension. There is an older version which will set the wrong ports if used with newer versions of Orange Share (this would mean that you are accessing the API instead of the user interface). The official GNOME Extension is not available for now as they do not have the capacities to validate this much python code. Therefore you would have to run pip uninstall orangeshare (to make sure the extension installs the newest version) and follow the manual guide here to install the newest version. You might still need to download the newest shortcuts after this.

I did not expect that there are already people using this, which is why I did not fully implement all the things needed for backwards compatibility and updating. In the future, these problems should (hopefully) not occur again.

I hope that this can fix the issue and am sorry for the inconvenience. If the problem still remains, please let me know and specify how you are running Orange Share (using the .exe, pip or the GNOME extension).

sannagy90 commented 3 years ago

I can confirm that it works perfectly fine with the latest update.

I did not expect that there are already people using this, which is why I did not fully implement all the things needed for backwards compatibility and updating. In the future, these problems should (hopefully) not occur again.

I was just browsing gnome extensions and yours looked interesting. It works perfectly, great job! very useful!

Yannis4444 commented 3 years ago

Thank you very much for the feedback. I'm happy to hear that everything works now.

I will try to make a working version available in the gnome extensions as soon as possible.