-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Caution about impersonation not compatible with pre authenticated #6673
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,14 @@ box, Symfony supports most authentication mechanisms. | |
These requests are called *pre authenticated* requests because the user is already | ||
authenticated when reaching your application. | ||
|
||
.. caution:: | ||
|
||
:doc:`User impersonation </cookbook/security/impersonating_user>` is not | ||
compatible with pre Authenticated firewalls. The reason is that | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's what I would write also, but the title of the cookbook is "Using pre Authenticated Security Firewalls" so I wanted to be consistent. Should it be changed everywhere? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pasdeloup the reason is that we use a strange format for titles, but for regular text we don't mix upper and lower case. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok fixed. I missed that rule about section titles
or
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pasdeloup it's "complicated" to say if you are right or wrong. First, the title casing is arbitrary and some words are uppercased and others aren't. Moreover, the hyphen after prefixes is also arbitrary in some cases, so I don't know if it's written "preauth..." or "pre-auth..." There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, let's keep like that for now ;) |
||
impersonation requires the authentication state to be maintained server-side | ||
but pre Authenticated information (``SSL_CLIENT_S_DN_Email``, ``REMOTE_USER`` | ||
or other) is sent in each request. | ||
|
||
X.509 Client Certificate Authentication | ||
--------------------------------------- | ||
|
||
|
@@ -152,9 +160,3 @@ key in the ``remote_user`` firewall configuration. | |
See :ref:`the previous note <cookbook-security-pre-authenticated-user-provider-note>` | ||
for more information. | ||
|
||
.. caution:: | ||
|
||
:doc:`User impersonation </cookbook/security/impersonating_user>` is not | ||
compatible with ``REMOTE_USER`` based authentication. The reason is that | ||
impersonation requires the authentication state to be maintained server-side | ||
but ``REMOTE_USER`` information is sent by the browser in each request. |
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.
pre Authenticated information
->preauthenticated information
orpre-authenticated information