-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Security] LoginLink with specific locale #40153
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
Conversation
|
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
|
Travis CI 7.2 and 8.0 OK, i don't understand why 7.4 failed ;) Thanks in advance for review ;) |
src/Symfony/Component/Security/Http/Tests/LoginLink/LoginLinkHandlerTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/LoginLink/FirewallAwareLoginLinkHandler.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Http/LoginLink/LoginLinkHandler.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Http/LoginLink/LoginLinkHandlerInterface.php
Outdated
Show resolved
Hide resolved
|
Hi! I think we should make this more generic and instead add a Btw, this interface is still experimental, so I think we can allow this BC break by adding a new argument. This should however be documented as such in the Do you agree & are you able to make these changes in this PR? :) status: needs work |
@wouterj : If @fabpot and others core members are ok with your proposal, i'm ok to make changes in this PR. |
|
I would prefer |
|
I agree with Robin 👌🏻 |
src/Symfony/Component/Security/Http/LoginLink/LoginLinkHandler.php
Outdated
Show resolved
Hide resolved
|
@roromix To fix the tests, you must update the SecurityBundle composer.json to require symfony/security-http 5.3 as a minimum. |
|
Perfect then (tests will be fixed after merging). |
src/Symfony/Component/Security/Http/LoginLink/LoginLinkHandler.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Http/LoginLink/LoginLinkHandler.php
Outdated
Show resolved
Hide resolved
chalasr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a nice first contribution! Thank you @roromix
src/Symfony/Component/Security/Http/LoginLink/LoginLinkHandler.php
Outdated
Show resolved
Hide resolved
|
Thank you @roromix. |
|
FYI, I added a conflict with symfony/security-bundle < 5.3, see 314ef9f |
|
Sorry @nicolas-grekas , i need to correct the feature with new PR#40638 |
This PR was submitted for the 5.4 branch but it was merged into the 5.3 branch instead. Discussion ---------- remove duplicate test Q | A -- | -- Branch? | 5.x Bug fix? | no New feature? | yes Deprecations? | no License | MIT The removed test is a duplication of Line 98 and introduced by #40153 I would prefer to conserve the test and edit value but the values are harcoded in the test Commits ------- 39ae981 remove duplicate test
I have added the possibility to create a login link for a specific locale. It's useful when we want generate a link for an other user who isn't in the same locale of us.