Skip to content

Commit

Permalink
Merge pull request #371 from cakephp/auth-component
Browse files Browse the repository at this point in the history
Update migration-from-the-authcomponent.rst
  • Loading branch information
dereuromark authored Apr 29, 2020
2 parents 5e59b21 + 2c4f189 commit 26f552a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/en/migration-from-the-authcomponent.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ Differences
data from the session you’ll have to use the
``SessionAuthenticator``. It will check the session if there is data
in the configured session key and put it into the identity object.
- The user data is no longer available through the AuthComponent but is
- The user data is no longer available through the old AuthComponent but is
accessible via a request attribute and encapsulated in an identity
object: ``$request->getAttribute('authentication')->getIdentity();``
object: ``$request->getAttribute('authentication')->getIdentity();``.
Addiotnally, you can leverage the ``AuthenticationComponent`` ``getIdentity()`` or ``getIdentityData()`` methods.
- The logic of the authentication process has been split into
authenticators and identifiers. An authenticator will extract the
credentials from the request, while identifiers verify the
Expand Down

0 comments on commit 26f552a

Please sign in to comment.