Problem/Motivation
Issues such as #3055260: [PP-1] Disable CSRF token check for non-CSRF vulnerable authentication providers require the AuthenticationManager provide some way for other services to determine which authentication plugin "won" in authenticating the current request. Various other parts of the routing and even image derivative generation systems use the request's attributes ParameterBag for storing computed data about the request. Let's do the same here.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3253911
Show commands
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 #3
bradjones1Comment #4
bradjones1This is also helpful for event subscribers/
hook_user_login()implementations that might only do things when a user logs in over the web (gets a session) vs. say, a native app.Comment #6
bradjones1Comment #8
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
Seems like a feature request but if you disagree let me know.
Seems like this could use a simple test coverage showing the existence of the plugin ID