-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DX] Added a logout link in the security panel of the web debug toolbar #14378
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
👍 |
I like this idea as well, especially as the implementation is so easy now :) Can you try to make the link more prominent? I did not see it at first and had to closely look to find it on the screenshot. |
I like this idea too |
@fabpot should the 2.8 branch become the default branch of all Symfony repos now that 2.7 is feature-frozen so that people sending PR open them against 2.8 by default ? |
@stof I like to way for the stable release to switch the default branch (like for Silex by the way :)). |
Option 1 or 2 would do for me. |
@fabpot this would mean that people not being careful will send us all PRs to 2.7, while only bugfixes should go there. It would be better to have them based on the right version IMO (even though we can switch the target with gh, it is better if the Travis builds are running on the right version, and it also means less chance for conflicts when rebasing) @javiereguiluz I vote for the option 2 (with the button style) |
👍 for the second option. |
I'd prefer both 1 + 2 = the button with the cross. |
Do we have buttons anywhere else in the panel? |
Looks great 👍 |
@Tobion I'd say that we don't have any button in any other panel. And I agree that we should avoid this inconsistency. |
I like option 1 and 2 as well as the combined one.
We didn't have something that would justify for a button UI element before, did we? So introducing this now doesn't look wrong to me. |
Don't care if its a button or a link but IMO it should be next to |
IMO nice would be to have option if we detect role |
👍 awesome, i like the link next to the 'Authenticated'. if the user has the role |
@@ -50,6 +50,7 @@ public function collect(Request $request, Response $response, \Exception $except | |||
'enabled' => false, | |||
'authenticated' => false, | |||
'token_class' => null, | |||
'provider_key' => null, |
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.
why not firewall key? sounds more natural
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.
I agree. However, the method in the token is called getProviderKey()
. That's why I prefer to be consistent here.
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.
ok sounds cool then, now i agree 👍
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.
@cordoval multiple firewalls can share the same authentication provider (using the context
setting in the config). So the provider key may not be the firewall name.
I think the logout button should be next to |
I like @raziel057 proposal. 👍 |
Nice one @javiereguiluz ! |
@raziel057 the problem I see with your first proposal is that the button looks like a badge (obviously my own button proposal also suffer this problem, but it's less problematic because it's not displayed next to the badge). Regarding your second proposal, I like that the link looks like a real link, but most people here don't want the link to stand out that much. Besides, I'm not sure about the result of aligning the link with the values. |
I've committed a new proposal where a new Actions section is created in the security panel: Considering that in #14458 we might add a new feature to switch the user, this Actions section could hold that button too: |
👍 great job :-) |
👍 great! |
@javiereguiluz how can i select the user to impersonate? |
btw, i like the buttons 👍 |
@javiereguiluz Can you finish this one? I'd like to merge it ASAP. |
7ac6822
to
a8b0d3f
Compare
👍 |
1 similar comment
👍 |
Thank you @javiereguiluz. |
While developing applications, it's common to login/logout users continuously to test security features. I usually type
/logout
in the URL, but this is boring and, depending on the application, not always works.This PR adds a small Logout link in the security panel when you are logged in the application:
Anonymous users won't see anything: