herusalt / forgerock
Forgerock middleware package
v1.0.2
2023-09-26 06:34 UTC
Requires
- codercat/jwk-to-pem: ^0.0.3
- lcobucci/jwt: ^3.4
This package is auto-updated.
Last update: 2024-12-26 09:59:43 UTC
README
composer require herusalt/forgerock
Modify bootstrap/app.php
add this line
$app->routeMiddleware([
'auth' => \App\Forgerock\Middlewere\ServiceMiddleware::class
...
]);
or
$app->routeMiddleware([
'auth' => \App\Forgerock\Middlewere\MemberPimcoreMiddleware::class
...
]);
Usage:
add this line on routes/web.php
$router->group(['prefix' => 'v1', 'middleware' => ['localization', 'channel','auth']], function () use ($router) {
}
Add Credential
FR_SCOPE=
FR_REDIRECT_URI=
FR_SECRETKEY=
FR_CLIENTID=
FR_CLIENTID_MOBILE=
FR_DOMAIN=
FR_ALG=
STATUS_FAILED_CODE=01