-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] [Test] add token attributes in KernelBrowser::loginUser()
#51638
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 |
KernelBrowser::loginUser()
KernelBrowser::loginUser()
d32cc10
to
955ff13
Compare
a1776c0
to
1d38977
Compare
Thank you @Valmonzo. |
…owser::loginUser()` (HeahDude) This PR was merged into the 7.0 branch. Discussion ---------- [FrameworkBundle] Remove deprecation layer for `KernelBrowser::loginUser()` | Q | A | ------------- | --- | Branch? | 7.0 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | ~ | License | MIT Follows #51638. Commits ------- 0e1d113 [FrameworkBundle] Remove deprecation layer for `KernelBrowser::loginUser()`
We have an advanced use case where we define custom attributes in tokens from success handlers.
Then, we use them for access controls.
Currently we cannot define those attributes when testing and using the
loginUser()
method, and so we needed to copy paste the whole logic to do it.What do you think about this feature?
I did not add tests because the method does not have any yet, should we add some?
It's my first contribution, thanks to my brother @HeahDude for his help 🙏🏽