Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: proxy support #2364

Closed
da351hon opened this issue Feb 8, 2019 · 1 comment
Closed

FR: proxy support #2364

da351hon opened this issue Feb 8, 2019 · 1 comment

Comments

@da351hon
Copy link

da351hon commented Feb 8, 2019

Environment

  • Xcode version: 10.1
  • Firebase SDK version: 5.7.0
  • Firebase Component: Database
  • Component version: 5.0.2

Problem

My application tried to access Firebase Realtime DB behind corporate HTTP(S) proxy, but failed. FIRAuth returned user information (AuthDataResult), but FIRDatabase did not returned any data.
I'm afraid FIRDatabase does not use HTTP(S) but webSocket.
Could it be supported to access the DB behind the proxy?

I'm using iOS - Swift to build my application. AuthDataResult is defined as follows: https://firebase.google.com/docs/reference/swift/firebaseauth/api/reference/Classes/AuthDataResult?hl=ja

@wilhuff
Copy link
Contributor

wilhuff commented Feb 11, 2019

Unfortunately, the Realtime Database does not support HTTP(S) proxies and we've shifted our development focus to Firestore.

Firestore uses gRPC for transport, and that does support proxies. You can set one by setting the http_proxy environment variable. We don't yet directly support reading proxy configuration from the system, but this is something that's straightforward to wire together using an approach like this one: https://stackoverflow.com/a/11540930/6253640.

@wilhuff wilhuff closed this as completed Feb 11, 2019
@firebase firebase locked and limited conversation to collaborators Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants