Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/en/authenticators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ example.
If provided will be used instead of the secret key.

You need to add the lib `firebase/php-jwt <https://github.com/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.
Expand Down Expand Up @@ -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 <https://book.cakephp.org/4/en/core-libraries/events.html>`__.
documentation <https://book.cakephp.org/5/en/core-libraries/events.html>`__.

The ``Authentication.afterIdentify`` event is fired by the
``AuthenticationComponent`` after an identity was successfully
Expand Down
2 changes: 1 addition & 1 deletion docs/en/identifiers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://book.cakephp.org/4/en/orm/retrieving-data-and-resultsets.html#custom-finder-methods>`__.
You can read more about model finders `here <https://book.cakephp.org/5/en/orm/retrieving-data-and-resultsets.html#custom-finder-methods>`__.

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).
Expand Down
12 changes: 4 additions & 8 deletions docs/en/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://book.cakephp.org/4/en/controllers/middleware.html>`_. It can also
The authentication plugin integrates with your application as a `middleware <https://book.cakephp.org/5/en/controllers/middleware.html>`_. 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::
Expand Down
2 changes: 1 addition & 1 deletion docs/es/identifiers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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í <https://book.cakephp.org/4/en/orm/retrieving-data-and-resultsets.html#custom-finder-methods>`__.
Puede leer mas sobre los finders de los modelos `aquí <https://book.cakephp.org/5/en/orm/retrieving-data-and-resultsets.html#custom-finder-methods>`__.

Para usar el resolver ORM se requiere tener ``cakephp/orm`` en su archivo
``composer.json`` (si no estás usando el framework CakePHP completo).
Expand Down
2 changes: 1 addition & 1 deletion docs/es/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://book.cakephp.org/4/en/controllers/middleware.html>`_. También, se
El plugin authentication se integra con su aplicación como un `middleware <https://book.cakephp.org/5/en/controllers/middleware.html>`_. 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::
Expand Down
2 changes: 1 addition & 1 deletion docs/fr/identifiers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://book.cakephp.org/4/en/orm/retrieving-data-and-resultsets.html#custom-finder-methods>`__.
`cette documentation <https://book.cakephp.org/5/en/orm/retrieving-data-and-resultsets.html#custom-finder-methods>`__.

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
Expand Down
2 changes: 1 addition & 1 deletion docs/ja/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ CakePHPから `composer <https://getcomposer.org/>`_ でプラグインをイン
はじめに
===============

認証プラグインは、ミドルウェアとしてアプリケーションと統合します。 `middleware <https://book.cakephp.org/4/en/controllers/middleware.html>`_
認証プラグインは、ミドルウェアとしてアプリケーションと統合します。 `middleware <https://book.cakephp.org/5/en/controllers/middleware.html>`_
また、認証されていないアクセスをより簡単にするためのコンポーネントとして使用することもできます。 まずはミドルウェアを適用してみましょう。

**src/Application.php** に以下のクラスを追加します。
Expand Down