Closed (fixed)
Project:
Persistent Login
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2023 at 22:27 UTC
Updated:
6 Apr 2023 at 05:54 UTC
Jump to comment: Most recent
TokenHandler currently listens to the Kernel Request event directly, and weights itself to execute in relation to AuthenticationManager.
The AuthenticationManager iterates through the available providers and returns the first that applies to the current request. PL needs to be weighted before Cookie so that it can act when a cookie is provided for an expired session, but defer to Cookie for valid sessions.
Implement AuthenticationProviderInterface, and update the service definition.
TokenHandler no longer defers to user_login_finalize().
user_login hooks are not invoked.user channel indicating a persistent login token was used.Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
gappleWeighting PL to execute after Cookie will reintroduce the issue from #3349484: PL token won't start new session if old session expired from DB, so it needs to come first but have a more extensive
applies()check to defer to Cookie when necessaryComment #4
gappleBumping to 2.x since this will change the behaviour when a token is used.
Comment #5
gappleComment #7
gapple