symfony > HWIOAuthBundle > cannot login with OAuth

I'm facing a problem with #symfony2 and #HWIOAuthBundle.

The case : I log in my local installation with the facebook connect button. it works well. I can see the set Cookie change value of the SESSION ID.

I try the same on a real webserver where everything else is working good but the facebook button do the redirection to the good page but i'm not logged in.

What i See I can see it match my route :

[2016-05-18 23:13:40] request.INFO: Matched route "facebook_login".

i can see it correctly authenticate my user :

[2016-05-18 23:13:42] security.INFO: User has been authenticated successfully. {"username":"toto"} []

And after i can see this :

[2016-05-18 23:13:42] event.DEBUG: Notified event "security.interactive_login" to listener "FOSUserBundleEventListenerLastLoginListener::onSecurityInteractiveLogin". [] [] [2016-05-18 23:13:42] event.DEBUG: Notified event "kernel.request" to listener "SymfonyComponentHttpKernelEventListenerDebugHandlersListener::configure". [] [] [2016-05-18 23:13:42] event.DEBUG: Notified event "kernel.request" to listener "SymfonyComponentHttpKernelEventListenerDumpListener::configure". [] [] [2016-05-18 23:13:42] event.DEBUG: Notified event "kernel.request" to listener "SymfonyBundleFrameworkBundleEventListenerSessionListener::onKernelRequest". [] [] [2016-05-18 23:13:42] event.DEBUG: Notified event "kernel.request" to listener "SymfonyComponentHttpKernelEventListenerFragmentListener::onKernelRequest". [] [] [2016-05-18 23:13:42] event.DEBUG: Notified event "kernel.request" to listener "SymfonyComponentHttpKernelEventListenerRouterListener::onKernelRequest". [] [] [2016-05-18 23:13:42] event.DEBUG: Notified event "kernel.request" to listener "AppBundleEventListenerLocaleListener::onKernelRequest". [] [] [2016-05-18 23:13:42] event.DEBUG: Notified event "kernel.request" to listener "SymfonyComponentHttpKernelEventListenerLocaleListener::onKernelRequest". [] [] [2016-05-18 23:13:42] event.DEBUG: Notified event "kernel.request" to listener "SymfonyComponentHttpKernelEventListenerTranslatorListener::onKernelRequest". [] [] [2016-05-18 23:13:42] event.DEBUG: Notified event "kernel.request" to listener "SymfonyComponentSecurityHttpFirewall::onKernelRequest". [] [] [2016-05-18 23:13:42] event.DEBUG: Listener "SymfonyComponentSecurityHttpFirewall::onKernelRequest" stopped propagation of the event "kernel.request". [] [] [2016-05-18 23:13:42] event.DEBUG: Listener "SymfonyBundleAsseticBundleEventListenerRequestListener::onKernelRequest" was not called for event "kernel.request". [] [] [2016-05-18 23:13:42] security.INFO: Populated the TokenStorage with an anonymous Token. [] []

**difference between my local development plateform VS the webserver ** The only difference i see is that when the user is redirected, i have a set-cookies with a new SESSION ID and it works on local.

I have not the set cookie in my response on the web server.

I'm new on symfony. Maybe it's very easy but for the moment i'm blocked.

Thanks for your help,

Pierre.

链接地址: http://www.djcxy.com/p/54004.html

上一篇: Django在save()函数中的外键访问

下一篇: symfony> HWIOAuthBundle>无法使用OAuth登录