Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 622 Bytes

AuthenticationPlugin.md

File metadata and controls

23 lines (16 loc) · 622 Bytes

Authentication plugin support

Support for Authentication plugin usage.

Instead of the core Auth component you load the Authentication component:

$this->loadComponent('TinyAuth.Authentication', [
    ...
]);

Make sure you load the middleware:

use Authentication\Middleware\AuthenticationMiddleware;

// in Application::middleware()
$middlewareQueue->add(new AuthenticationMiddleware($this));

For all the rest just follow the plugin's documentation.

Then you use the Authentication documentation to fill your INI config file.