laborci/mikauth-eternity

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.0.3) of this package.

Maintainers

Package info

github.com/pte-mik/MikAuth-Eternity

pkg:composer/laborci/mikauth-eternity

Statistics

Installs: 13

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.3 2019-05-23 12:16 UTC

This package is auto-updated.

Last update: 2020-08-23 15:20:28 UTC


README

Eternity module for handling MIK-AUTH

copy the config file into your global configs, add it to your config builder

'mik-auth' => include "global/mik-auth.php",

Add MikAuthEternity to the ServiceContainer

\MikAuthEternity\Services::register([Config::class, 'mik_auth']);

finally add auth paths to your router

$router->get('/auth/login', [MikAuthRedirect::class, 'login'])();
$router->get('/auth/success/{token}', [MikAuthRedirect::class, 'success'])();
$router->pipe(MikAuthCheckMiddleware::class);
$router->get('/auth/logout', [MikAuthRedirect::class, 'logout'])();