add customer api

This commit is contained in:
2019-10-08 22:33:25 +02:00
committed by Roland Schneider
parent 9aee187d11
commit 1300bfc752
33 changed files with 1164 additions and 246 deletions

View File

@@ -1,4 +1,8 @@
<?php
use customerapi\components\JwtValidationData;
use sizeg\jwt\Jwt;
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/../../common/config/params-local.php'),
@@ -38,6 +42,12 @@ return [
'errorHandler' => [
'errorAction' => 'site/error',
],
'jwt' => [
'class' => Jwt::class,
'key' => 'secret',
// You have to configure ValidationData informing all claims you want to validate the token.
'jwtValidationData' => JwtValidationData::class,
],
],
'params' => $params,
];