-
Notifications
You must be signed in to change notification settings - Fork 38
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
Any support for subdomain authentication with drupal 7? #50
Comments
@tazimhossain I don't know. I hear there is a "cookie domain" setting that can go in settings.php to allow the cookie to be placed on another domain, I've never tried it though, so I'm not entirely certain on its capabilities. |
Thanx for reply. I am already doing that, but dont know why its not working for authentication. :( |
I've had this problem trying to run various requests from an app on a sub-domain. After a lot of debugging I've managed to get it working but it requires the 'withCredentials' flag adding to the request. I've attached a patch with adds a new setting to the jDrupal object, its a non-breaking change so it can be merged without affecting any existing installations. To use this functionality you just need to set the config: jDrupal.config('withCredentials', true); On the server side, I have the following headers set: header("Access-Control-Allow-Origin: [subdomain]"); |
Thank you @adam-clarey , any chance you'd like to turn this into a Pull Request? |
Ive since realised its not necessary, you can just use the hook_rest_pre_process:
|
When i collect node data from example.com site, its collect data into sub.example.com. but, when i trying to get current user information, its not working, its return anonymous.
How can i solve authentication with jdrupal, any suggestion?
The text was updated successfully, but these errors were encountered: