From f9a6d268b6cb1ed4cdbaf0b85ebd1d1f51b512ea Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Wed, 29 Apr 2020 16:10:58 +0200 Subject: [PATCH 1/2] Update migration-from-the-authcomponent.rst --- docs/en/migration-from-the-authcomponent.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/en/migration-from-the-authcomponent.rst b/docs/en/migration-from-the-authcomponent.rst index 9161fb6b..6b3ed43b 100644 --- a/docs/en/migration-from-the-authcomponent.rst +++ b/docs/en/migration-from-the-authcomponent.rst @@ -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 From 2c4f189bdce46a06ae0f48b1fb9361426e6b6897 Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Wed, 29 Apr 2020 16:15:01 +0200 Subject: [PATCH 2/2] Update docs/en/migration-from-the-authcomponent.rst Co-Authored-By: Mark Sch. --- docs/en/migration-from-the-authcomponent.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/migration-from-the-authcomponent.rst b/docs/en/migration-from-the-authcomponent.rst index 6b3ed43b..45c29c1c 100644 --- a/docs/en/migration-from-the-authcomponent.rst +++ b/docs/en/migration-from-the-authcomponent.rst @@ -19,7 +19,7 @@ Differences - 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();``. - Addiotnally, you can leverage the ``AuthenticationComponent`` ``getIdentity`` or ``getIdentityData`` methods. + 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