-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Updated Guard article for the GuardAuthenticatorInterface deprecation #8497
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
security/guard_authentication.rst
Outdated
.. versionadded:: 3.4 | ||
The ``supports()`` method was introduced in Symfony 3.4. In previous Symfony | ||
versions, the authenticator could be skipped returning ``null`` in the | ||
``getCredentials()`` method. |
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.
These lines should be indented to be part of the definition item.
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.
👍 With minor comment
**getCredentials(Request $request)** | ||
This will be called on *every* request and your job is to read the token (or | ||
whatever your "authentication" information is) from the request and return it. | ||
If you return ``null``, the rest of the authentication process is skipped. Otherwise, | ||
``getUser()`` will be called and the return value is passed as the first argument. | ||
These credentials are later passed as the first argument ot ``getUser()``. |
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.
typo ot
=> of
:)
Thank you Javier. |
… deprecation (javiereguiluz) This PR was squashed before being merged into the 3.4 branch (closes #8497). Discussion ---------- Updated Guard article for the GuardAuthenticatorInterface deprecation This fixes #8485. Commits ------- e889c94 Updated Guard article for the GuardAuthenticatorInterface deprecation
* 3.4: (27 commits) [#8549] update ordered list syntax Minor tweaks Add default_path option reference [Form] Add debug:form command to debug page Added option to disable type enforcement in serializer Explained the possibility of defining custom deprecation messages [config] Add a note about deprecated a node [#8471] minor reword Explained the DomCrawler charset guessing mechanism Added a bundle deprecation notice in other articles [#8497] fix typo Updated Guard article for the GuardAuthenticatorInterface deprecation Deprecate auto picking the first provider Explain the new ColorType a bit more Explain the new TelType a bit more add doc for new tel and color types Update tags.rst Update tags.rst Update tags.rst Update tags.rst ...
…ereguiluz) This PR was merged into the 3.4 branch. Discussion ---------- Improved the first example of the Guard authenticator I don't like the changes I made to this example in #8497. I consider that the new version of the example makes more sense and it's more correct. Commits ------- ad84f23 Improved the first example of the Guard authenticator
This fixes #8485.