Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is a problem with unserializing user objects in FOSUserBundle's InteractiveLoginListener. For now you can manually set the security token and redirect users to a another page rather than sending them back to fos_user_security_check.</p> <p>For example, instead of this:</p> <pre><code>// IMPORTANT: It is required to set a user to token (UserInterface) $newToken = new OpenIdToken($token-&gt;getOpenIdentifier(), $user-&gt;getRoles()); $newToken-&gt;setUser($user); $tokenPersister-&gt;set($newToken); // IMPORTANT: It is required make a redirect to `login_check` with parameter `openid_approved` return $this-&gt;redirect($this-&gt;generateUrl('login_check_route', array('openid_approved' =&gt; 1))); </code></pre> <p>Do this:</p> <pre><code>// IMPORTANT: It is required to set a user to token (UserInterface) $newToken = new OpenIdToken($token-&gt;getOpenIdentifier(), $user-&gt;getRoles()); $newToken-&gt;setUser($user); $tokenPersister-&gt;set($newToken); $this-&gt;get('security.context')-&gt;setToken($newToken); return $this-&gt;redirect($this-&gt;generateUrl('authenticated_user_dashboard')); </code></pre> <p>Where "authenticated_user_dashboard" is whatever internal landing page you want users to end up on.</p> <p>Note that because FOSUserBundle's InteractiveLoginListener::onSecurityInteractiveLogin() is not called, last login time will not be updated automatically.</p> <p>This is a known issue that makasim is investigating: <a href="https://github.com/formapro/FpOpenIdBundle/issues/5" rel="nofollow">https://github.com/formapro/FpOpenIdBundle/issues/5</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload