angular-drupal icon indicating copy to clipboard operation
angular-drupal copied to clipboard

Cookie domain

Open OpenEyeNet opened this issue 9 years ago • 3 comments

In drupal you can set the cookie domain in your settings.php.

Can you authenticate using that?

OpenEyeNet avatar Oct 07 '16 22:10 OpenEyeNet

Yes. That when calling drupal.connect(); It will auto authenticate using the cookie_domain.

webdobe avatar Oct 18 '16 20:10 webdobe

@OpenEyeNet and @webdobe Did you need the cookie_domain because your Drupal site and your app are running in different domains? Or did you need cookie_domain even when they are running in the same domain?

Also, are you both working with D7 and/or D8 here? I need to wrangle all these cookie/login/cors/subdomain issues folks are having, and get things under control for both D7 and D8.

signalpoint avatar Oct 27 '16 14:10 signalpoint

So my setup is I have the main domain as the drupal 7 site. But I have a few different silo apps. That I want to be able to share users across domains. This is where the cookie_domain came in. So if someone logs in at one site.. They will be logged into all of them. After I got all the CORS stuff straight, I didn't have to modify anything in angular-drupal. So I have a feeling that all peoples issues stem from CORS.

I posted what I did @ #https://github.com/easystreet3/angular-drupal/issues/2

I plan on taking the D8 version through a development cycle next so. I will be able to give feedback on that then. Really liking angular and headless drupal.

webdobe avatar Oct 27 '16 16:10 webdobe