Firefox-ios: (Bounty) Allow usage of own Firefox Sync token server

Created on 18 Nov 2015  ·  27Comments  ·  Source: mozilla-mobile/firefox-ios

We use an own Firefox Sync server like described in https://docs.services.mozilla.com/howtos/run-sync-1.5.html. But there is no way to configure the Firefox Sync token server URL to point to our own sync server other than modifying the source code in Account/FirefoxAccountConfiguration.swift, line 111.

Can we add an option for that? Should I do a PR?

Most helpful comment

Agree. This is really the main feature for me to leave Safari behind...

All 27 comments

I would also like to see this feature added.

bump .... That would really be a enhancement ....

Agree. This is really the main feature for me to leave Safari behind...

@schrorg We would love to see a PR for this. Do you want to work on this?

Has there been any progress on this topic? I'd really love to see this feature as FF would be the only browser to support self-hosted sync across all necessary devices.

Unfortunately I will not have the time for it during the next weeks (summer vacation, lots of other work to do...).
I will definitely keep this in mind because I still need this feature personally.

I'm not that experienced in iOS development although I did some work in own apps already. If there's something I can help you with, please let me know.

Any improvements on this feature ?
I'm also interested to point to my self-hosted ffsync server.
Thanks.

Are there any updates on this? I would really like to use this feature.

+1

I would love to see this feature being implemented as well. Shall we put a bounty on it? Any specific service you guys would recommend for this?

+1 Would chip in on the bounty as well.

OK, I just started it out at Bountysource. Feel free to contribute! :)

Bountysource

+1 I joined in.

@schrorg Would you consider renaming the issue topic to include "(Bounty)" in the front, so it would be more noticeable for anybody who just looks at the list of issues?

@mrjovanovic Now you have a chance :).

@ All other guys, if it's something you want to see being done soon, I'd suggest to drop few bucks on it as well :).

Also, I wonder if there's a good place to advertise the issue once the bounty gets big enough? Maybe Mozilla iOS IRC?

I've filed bug 1344536 for this. Starting to work on it...

Hello All.
@schrorg @iron77
To Cut the story short we all want the option to change the

Sync15Configuration -> tokenServerEndpointURL URL From the UI front.

Please Correct me if i am wrong.

Would Love to start working on the same. If any one have not yet started.

Note that 1344536 has been closed and marked as a duplicate of 1204411. @st3fan, please remove the needs bug label.

@hb2708 thanks for your interest.

I might not be fully aware of how this iOS app works under the hood, but from the user perspective, I can tell you which configuration options we need there to be present.

Bringing desktop Firefox as an example, to run own Firefox Sync server, you go to about:config and set up some options pointing to where your server is. As per https://mozilla-services.readthedocs.io/en/latest/howtos/run-fxa.html and some of my testing, the options are:

  • identity.fxaccounts.auth.uri
  • identity.fxaccounts.remote.force_auth.uri
  • identity.fxaccounts.remote.oauth.uri
  • identity.fxaccounts.remote.profile.uri
  • identity.fxaccounts.remote.signin.uri
  • identity.fxaccounts.remote.signup.uri
  • identity.fxaccounts.remote.webchannel.uri
  • identity.fxaccounts.settings.uri
  • identity.sync.tokenserver.uri

I'd expect iOS app (both iPhone and iPad) to also give you some way, somewhere in UI, to set these options to custom values.

For the record, it was about a year since I last digged in that documentation, so in case I missed any option which might also be required these days, I'd appreciate the comment.

@m8mble @schrorg @iron77 Thanks but I am not aware of it on desktop.
But i can surely make it possible on iPhone and iPad apps.

If any can explain is some easy manner i would be grateful.

@cdubz So it means it's implemented or yet to be implemented?

Still yet to be implemented and doesn't appear to have any traction in Bugzilla. I was just noting the updated bug number there.

@hb2708 I can try to explain it as easy as possible. Just so I better understand where to start, can you tell me:

  1. Did you ever used Firefox Sync:

    • Mozilla hosted? (default)

    • Self-hosted?

  2. If none of the above, do you have a basic understanding of what Firefox Sync is?

Sorry if questions above sound a bit stupid, I want to be fully sure we're both on the same page :)

Hi,
the only setting which needs to be changed to be editable is the analogous option to identity.sync.tokenserver.uri. In all other OSes (MacOS,WIN,Linux,Android) it was seemingly implemented at a easy way, only in iOS it seems not to be hassle-free. FF at this OS has obviously not as much in common with the other Implementations. A bing thank you in advance to the people who are in charge of this!

Giving this another bump since I just upgraded to iOS10 from 7 to get Firefox on my iP. Now this missing function disappoints me a bit.

It cannot be in any way too hard to code, seems like a couple of lines only.
The problem I see would be getting this code into a release. Are the maintainers willing to accept "foreign" code?

Is this issue resolved now that https://github.com/mozilla-mobile/firefox-ios/pull/3088 has been merged or is additional functionality that needs to be added?

@joeyg I believe this is it! Looking forward to test it at my iDevices once it lands the App Store.

Yes, I am going to close this issue now that https://github.com/mozilla-mobile/firefox-ios/pull/3088 has landed. I think it has only landed on master though. @vbudhram is #3088 something we want to uplift to 9.0?

Was this page helpful?
0 / 5 - 0 ratings