samuelerwardi / forgerock
Forgerock middleware package
Installs: 6 942
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 4
Open Issues: 0
Requires
- codercat/jwk-to-pem: ^0.0.3
README
composer require samuelerwardi/forgerock
Modify bootstrap/app.php
add this line
$app->routeMiddleware([
'auth' => \App\Forgerock\Middlewere\ServiceMiddleware::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