8000 Updated Guard article for the GuardAuthenticatorInterface deprecation by javiereguiluz · Pull Request #8497 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Updated Guard article for the GuardAuthenticatorInterface deprecation #8497

8000
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

Closed
wants to merge 2 commits into from

Conversation

javiereguiluz
Copy link
Member

This fixes #8485.

.. 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.
Copy link
Member

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.

@xabbuh xabbuh added this to the 3.4 milestone Oct 10, 2017
Copy link
Member
@chalasr chalasr left a 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()``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo ot => of :)

@xabbuh
Copy link
Member
xabbuh commented Oct 13, 2017

Thank you Javier.

xabbuh added a commit that referenced this pull request Oct 13, 2017
… 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
xabbuh added a commit that referenced this pull request Oct 13, 2017
@xabbuh xabbuh closed this Oct 13, 2017
xabbuh added a commit that referenced this pull request Oct 27, 2017
* 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
  ...
weaverryan added a commit that referenced this pull request Nov 16, 2017
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0