Enhance JWT Authentication Middleware and Configuration
- Updated the `AuthenticateJWT.php` middleware to conditionally skip IP and User Agent validation based on a new configuration setting, improving flexibility for users with dynamic IPs. - Added a new configuration option `jwt_skip_ip_ua_validation` in `app.php` to control the validation behavior, allowing it to be set via the environment file. - Updated documentation in `environment-variables.mdx` to include the new configuration option, ensuring users are informed about its purpose and usage. These changes enhance the JWT authentication process by providing an option to bypass IP and User Agent validation, improving usability for self-hosted users.
This commit is contained in:
@@ -41,6 +41,7 @@ There are dedicated configuration pages available for more detailed setup instru
|
||||
| `FRONT_API_SECRET` | Shared secret with the front-end. |
|
||||
| `TELEGRAM_BOT_ID` | ID of your Telegram bot for notifications. |
|
||||
| `TELEGRAM_BOT_TOKEN` | Authentication token for your Telegram bot. |
|
||||
| `JWT_SKIP_IP_UA_VALIDATION` | Set to `true` to disable JWT IP and User Agent validation (defaults to `false`). Useful for dynamic IPs. |
|
||||
|
||||
### User Options Environment Variables
|
||||
|
||||
|
||||
Reference in New Issue
Block a user