Skip to content

[SecurityGuard] PostAuthenticationGuardToken does not implement getFirewallName() #38421

@derrabus

Description

@derrabus

Symfony version(s) affected: 5.2.0-beta1

Description

I've upgraded a Symfony 5.1 application that uses a Guard authenticator to Symfony 5.2-beta1. The following deprecation is logged:

User Deprecated: Since symfony/security-http 5.2: Method "Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken::getProviderKey()" has been deprecated, rename it to "getFirewallName()" instead.

I believe my application can't do much about it because the class in question is a Symfony class.

How to reproduce
Use a guard authenticator.

Possible Solution
Implement getFirewallName() on PostAuthenticationGuardToken.

Additional context
The deprecation was introduced with #37942, but apparently the Guard component has not been updated accordingly. /cc @wouterj

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy