firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

FR: Auth across subdomains

Open gkadillak opened this issue 5 years ago • 19 comments

[REQUIRED] Describe your environment

  • Operating System version: macOS Mojave Version 10.14.6
  • Browser version: Google Chrome Version 74.0.3729.131
  • Firebase SDK version: 5.5.9
  • Firebase Product: auth

[REQUIRED] Describe the problem

Steps to reproduce:

We've transitioned to using Firebase for auth and the desire is to now use Firebase across subdomains, which Firebase does not support out of the box. I've done my research and I see that there's been a few forum items requesting this exact feature here and here. Ultimately, the posts link to this stackoverflow issue. As far as I can tell, the best reason for this is:

Firebase only supports single host origin sessions

Why is this a limitation for Firebase? The stackoverflow item also states that

Firebase Auth is looking into supporting cookies.

What is the status of this? Has it been funded? Is there a way to see progress of this project somewhere? We have a strong desire to avoid rolling our own subdomain auth system, so looking forward to hearing your response 🙂

gkadillak avatar Oct 28 '19 17:10 gkadillak

I wrote a blog post a while back describing how you can accomplish this using the current firebase auth API. Official support making this easier would still be very nice though.

jorroll avatar Dec 20 '19 22:12 jorroll

Hi, any progress on this issue?

VFertak avatar Aug 04 '20 19:08 VFertak

Hi, while this is not currently on our roadmap we have added this as a feature request to our tracker (for internal folks: b/162973088).

sam-gc avatar Aug 05 '20 22:08 sam-gc

@samhorlbeck thanks a lot. Any workaround suggestions from your side?

VFertak avatar Aug 06 '20 05:08 VFertak

I think @bojeil-google's response and discussion in the Stackoverflow response proposes the best workaround for the time being.

sam-gc avatar Aug 06 '20 17:08 sam-gc

Any idea if this feature is coming up soon to the firebase Auth sdk? Would love to have it to avoid building the workaround solution.

joaoaguiam avatar Feb 07 '21 06:02 joaoaguiam

+1 would love to see this!

c10r avatar Apr 27 '21 05:04 c10r

Joining everyone here – would be awesome to have official support for this!

drummerjolev avatar May 10 '21 07:05 drummerjolev

+1!

cnovoab avatar Jul 23 '21 21:07 cnovoab

+1

Karman40 avatar Jul 23 '21 21:07 Karman40

+1

samuelkarani avatar Aug 30 '21 13:08 samuelkarani

Hi, recently started building on Firebase and it's been great so far. Then I ran into this which is kind of a bummer. Having to login again will suffice for now, but it would be great to offer a smoother experience to users.

Any update on status of this on the FR list or possibly on the roadmap?

Thanks!

jKostet avatar Apr 03 '22 21:04 jKostet

+1

konojunya avatar Jul 12 '22 19:07 konojunya

We need native support for auth across subdomains! +1

technopahadi avatar Oct 10 '22 05:10 technopahadi

Hi,

It really would be useful to have an option to keep users signed in across subdomains. There are many good reasons why a team might want to have a blog, or some documentation, or a marketing campaign (etc) hosted on a separate subdomain and not have to require the user to sign in and out of each one separately. Not least, because it's much easier for a development team to build a quick micro-site than have to battle with one great big monolithic website.

This issue has been open for three years so I'm assuming that there's a good reason why authentication has not been implemented across subdomains, but could someone comment if there's an active plan to implement this? For example, in 1 year, 3 years, 5 years or is it really absolutely impossible to do safely due to the security implications, or just the way the browser works?

Knowing that would help me plan the architecture for a new project. Thanks

digibake avatar Dec 05 '22 12:12 digibake

+1 This needs to be added as a priority item!

elucidsoft avatar Feb 07 '23 21:02 elucidsoft

+1

ivangusev avatar Oct 25 '23 15:10 ivangusev