diff --git a/docs/en/authenticators.rst b/docs/en/authenticators.rst index a3bfc1b3..83e785cc 100644 --- a/docs/en/authenticators.rst +++ b/docs/en/authenticators.rst @@ -143,7 +143,7 @@ example. If provided will be used instead of the secret key. You need to add the lib `firebase/php-jwt `_ -v6.2 or above to your app to use the ``JwtAuthenticator``. +v7.0 or above to your app to use the ``JwtAuthenticator``. By default the ``JwtAuthenticator`` uses ``HS256`` symmetric key algorithm and uses the value of ``Cake\Utility\Security::salt()`` as encryption key. @@ -430,7 +430,7 @@ There is only one event that is fired by authentication: ``Authentication.afterIdentify``. If you don’t know what events are and how to use them `check the -documentation `__. +documentation `__. The ``Authentication.afterIdentify`` event is fired by the ``AuthenticationComponent`` after an identity was successfully diff --git a/docs/en/identifiers.rst b/docs/en/identifiers.rst index 5c673fa9..9db0e9aa 100644 --- a/docs/en/identifiers.rst +++ b/docs/en/identifiers.rst @@ -172,7 +172,7 @@ Configuration options: - **userModel**: The user model identities are located in. Default is ``Users``. - **finder**: The finder to use with the model. Default is ``all``. - You can read more about model finders `here `__. + You can read more about model finders `here `__. In order to use ORM resolver you must require ``cakephp/orm`` in your ``composer.json`` file (if you are not already using the full CakePHP framework). diff --git a/docs/en/index.rst b/docs/en/index.rst index 3fb17d29..728f80d8 100644 --- a/docs/en/index.rst +++ b/docs/en/index.rst @@ -10,20 +10,16 @@ Project's ROOT directory (where the **composer.json** file is located) Version 4 of the Authentication Plugin is compatible with CakePHP 5. -Load the plugin by adding the following statement in your project's ``src/Application.php``:: +Load the plugin using the following command:: - public function bootstrap(): void - { - parent::bootstrap(); - - $this->addPlugin('Authentication'); - } +.. code-block:: shell + bin/cake plugin load Authentication Getting Started =============== -The authentication plugin integrates with your application as a `middleware `_. It can also +The authentication plugin integrates with your application as a `middleware `_. It can also be used as a component to make unauthenticated access simpler. First, let's apply the middleware. In **src/Application.php**, add the following to the class imports:: diff --git a/docs/es/identifiers.rst b/docs/es/identifiers.rst index 76e117d0..eb13b0b8 100644 --- a/docs/es/identifiers.rst +++ b/docs/es/identifiers.rst @@ -163,7 +163,7 @@ Opciones de configuración: - **userModel**: El modelo donde están localizadas las indentidades. Por defecto es ``Users``. - **finder**: El finder a usar con el modelo. Por defecto es ``all``. - Puede leer mas sobre los finders de los modelos `aquí `__. + Puede leer mas sobre los finders de los modelos `aquí `__. Para usar el resolver ORM se requiere tener ``cakephp/orm`` en su archivo ``composer.json`` (si no estás usando el framework CakePHP completo). diff --git a/docs/es/index.rst b/docs/es/index.rst index 206e9514..3c86e3a6 100644 --- a/docs/es/index.rst +++ b/docs/es/index.rst @@ -21,7 +21,7 @@ Carge el plugin agregando la siguiente declaración en ``src/Application.php``:: Empezando ========= -El plugin authentication se integra con su aplicación como un `middleware `_. También, se +El plugin authentication se integra con su aplicación como un `middleware `_. También, se puede utilizar como un componente para simplificar el acceso no autenticado. Primero aplique el middleware. En **src/Application.php**, agregue las siguientes importaciones de clase:: diff --git a/docs/fr/identifiers.rst b/docs/fr/identifiers.rst index fac152cb..2936398b 100644 --- a/docs/fr/identifiers.rst +++ b/docs/fr/identifiers.rst @@ -169,7 +169,7 @@ Options de configuration: Par défaut ``Users``. - **finder**: Le finder à utiliser avec le modèle. Par défaut ``all``. Pour en savoir plus sur les finders de modèle, consultez - `cette documentation `__. + `cette documentation `__. Afin d'utiliser le résolveur ORM, vous devez requérir ``cakephp/orm`` dans votre fichier ``composer.json`` (si vous n'utilisez pas déjà le framework CakePHP diff --git a/docs/ja/index.rst b/docs/ja/index.rst index 6023daa0..574317d4 100644 --- a/docs/ja/index.rst +++ b/docs/ja/index.rst @@ -22,7 +22,7 @@ CakePHPから `composer `_ でプラグインをイン はじめに =============== -認証プラグインは、ミドルウェアとしてアプリケーションと統合します。 `middleware `_ +認証プラグインは、ミドルウェアとしてアプリケーションと統合します。 `middleware `_ また、認証されていないアクセスをより簡単にするためのコンポーネントとして使用することもできます。 まずはミドルウェアを適用してみましょう。 **src/Application.php** に以下のクラスを追加します。