ArcherZdip /
laravel-api-auth
| 1 | <?php |
||
| 2 | return [ |
||
| 3 | |||
| 4 | /* |
||
| 5 | |-------------------------------------------------------------------------- |
||
| 6 | | appid length , default 16 |
||
| 7 | |-------------------------------------------------------------------------- |
||
| 8 | | |
||
| 9 | | |
||
| 10 | */ |
||
| 11 | 'appid_length' => env('API_KEY_APPID_LENGTH', '16'), |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 12 | |||
| 13 | /* |
||
| 14 | |-------------------------------------------------------------------------- |
||
| 15 | | secret length , default 64 |
||
| 16 | |-------------------------------------------------------------------------- |
||
| 17 | | |
||
| 18 | | |
||
| 19 | */ |
||
| 20 | 'secret_length' => env('API_KEY_SECRET_LENGTH', '64'), |
||
| 21 | |||
| 22 | /* |
||
| 23 | |-------------------------------------------------------------------------- |
||
| 24 | | token timeout , default 0, 0 is unlimited |
||
| 25 | |-------------------------------------------------------------------------- |
||
| 26 | | |
||
| 27 | | |
||
| 28 | */ |
||
| 29 | 'token_timeout' => env('API_KEY_TOKEN_TIMEOUT', 0), |
||
| 30 | |||
| 31 | /* |
||
| 32 | |-------------------------------------------------------------------------- |
||
| 33 | | Logger Setting |
||
| 34 | |-------------------------------------------------------------------------- |
||
| 35 | | |
||
| 36 | | Available Drivers: "datebase", "file" |
||
| 37 | | |
||
| 38 | */ |
||
| 39 | 'logger' => [ |
||
| 40 | 'is_taken' => env('API_KEY_LOGGER', false), |
||
| 41 | 'driver' => env('API_KEY_LOGGER_DRIVER', 'database'), |
||
| 42 | ], |
||
| 43 | |||
| 44 | /* |
||
| 45 | |-------------------------------------------------------------------------- |
||
| 46 | | Cache Setting |
||
| 47 | |-------------------------------------------------------------------------- |
||
| 48 | | |
||
| 49 | | Cache Setting. |
||
| 50 | | |
||
| 51 | */ |
||
| 52 | 'cache' => [ |
||
| 53 | 'is_taken' => env('API_KEY_CACHE', false), |
||
| 54 | 'cache_key' => env('API_KEY_CACHE_KEY', 'apikey:clients:'), |
||
| 55 | ], |
||
| 56 | |||
| 57 | /* |
||
| 58 | |-------------------------------------------------------------------------- |
||
| 59 | | Table Name |
||
| 60 | |-------------------------------------------------------------------------- |
||
| 61 | | |
||
| 62 | | Table Name, if this tablename exists can change. |
||
| 63 | | |
||
| 64 | */ |
||
| 65 | 'table_name' => [ |
||
| 66 | /** |
||
| 67 | * APP clients table name |
||
| 68 | */ |
||
| 69 | 'app_clients' => env('APP_CLIENTS_NAME', 'api_auth_app_clients'), |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Api_auth access events table name |
||
| 73 | */ |
||
| 74 | 'api_auth_access_events' => env('API_AUTH_ACCESS_EVENTS_NAME', 'api_auth_access_events'), |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Api_auth oprate events table name |
||
| 78 | */ |
||
| 79 | 'api_auth_oprate_events' => env('API_AUTH_OPRATE_EVENTS_NAME', 'api_auth_oprate_events'), |
||
| 80 | ], |
||
| 81 | |||
| 82 | |||
| 83 | ]; |