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

SF2 interaction with "real" wordpress blog #23

Open
barat opened this issue Oct 8, 2013 · 3 comments
Open

SF2 interaction with "real" wordpress blog #23

barat opened this issue Oct 8, 2013 · 3 comments

Comments

@barat
Copy link

barat commented Oct 8, 2013

Hi,

I don't know if this is only a bonus, but:

  • I installed wordpress in my test.loc domain, and symfony in sub.test.loc
  • I've set logged_in_key and logged_in_salt in config.yml to same as in wp-config.php

And:

  • When I login/logout on Acme Demo Bundle it works on Symfony side
  • when I'm loging/logout via wordpres (wp-login.php) then I'm logged in/out in both (WP and SF2)
  • when I'm logged in via wp-login.php I can't logout on symfony side (Im still logged in)
  • when I'm logged in via Symfony I'm not automaticly logged in "real" Wordpress

So ... it's almost SSO ... from Wordpress on main domain I can login/logout from both applications, but from Symfony (Your bundle) I can only login/logout from SF2 (on WP I'm still logged off).
Is there a way to make Your bundle both-sides SSO?

@kayue
Copy link
Owner

kayue commented Oct 12, 2013

This sounds like a setting issue to me, as SSO is very strict about cookie settings. You might want to open your browser's debug console and compare the cookie WordPress created and the cookie Symfony created.

Please also note that signing in via Symfony won't grant you access to WordPress admin as the admin page require a different cookie.

@kayue
Copy link
Owner

kayue commented Oct 12, 2013

Please double check the cookie_path and cookie_domain setting in Symfony config, they are essential and easy to go wrong. They should match with WordPress's login cookie. I recommend you to use developer console to inspect the cookie WordPress creates.

@ahmed-hamdy90
Copy link

@barat did you find any solution for your issue ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants