Skip to content

[Security] Renamed provider key to firewall name #37942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2020

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Aug 25, 2020

Q A
Branch? master
Bug fix? no
New feature? no
Deprecations? yes
Tickets Fix #15207
License MIT
Doc PR tbd

This fixes the $providerKey argument names on the classes that will remain in use, even when the new Security system will take over. @fabpot do you think these changes are worth it?

Officially, all token classes are not marked as @final. Do I need to take into account when someone is overriding the getProviderKey() method? Also, I couldn't find a way to trigger a deprecation notice for deprecated properties, is this a problem?

@wouterj wouterj force-pushed the issue-15207/provider-key branch 2 times, most recently from e859eea to 5bee51e Compare August 25, 2020 19:32
Copy link
Member

@fabpot fabpot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also add notes in the main UPGRADE files for 5.2 and 6.0.

@wouterj wouterj force-pushed the issue-15207/provider-key branch from 5bee51e to 169fff9 Compare August 26, 2020 09:56
@fabpot
Copy link
Member

fabpot commented Aug 26, 2020

@wouterj I think you forgot to add notes in the main UPGRADE files for 5.2 and 6.0.

@fabpot
Copy link
Member

fabpot commented Aug 26, 2020

And you also have some failing tests.

@wouterj wouterj force-pushed the issue-15207/provider-key branch from 169fff9 to d336a8d Compare August 26, 2020 10:19
@wouterj wouterj force-pushed the issue-15207/provider-key branch from d336a8d to 91b2763 Compare August 26, 2020 15:34
@fabpot
Copy link
Member

fabpot commented Aug 26, 2020

Thank you @wouterj.

@fabpot fabpot merged commit 6d521d4 into symfony:master Aug 26, 2020
@wouterj wouterj deleted the issue-15207/provider-key branch August 26, 2020 15:50
@xabbuh xabbuh added this to the next milestone Aug 27, 2020
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.2 Oct 5, 2020
@fabpot fabpot mentioned this pull request Oct 5, 2020
chalasr added a commit to lexik/LexikJWTAuthenticationBundle that referenced this pull request Nov 14, 2020
This PR was squashed before being merged into the 2.x-dev branch.

Discussion
----------

Fix Symfony 5.2 getProviderKey deprecation

👋   Hi

> Since symfony/security-http 5.2: Method "Lexik\Bundle\JWTAuthenticationBundle\Security\Authentication\Token\JWTUserToken::getProviderKey()" has been deprecated, rename it to "getFirewallName()" instead.

 from symfony/symfony#37942

Commits
-------

50959e7 Fix Symfony 5.2 getProviderKey deprecation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Security] Rename provider key
5 participants