feat: enhance authentication and publication download tracking
- Added JWT authentication support with configurable secret and expiration. - Introduced optional API key validation for endpoints. - Implemented tracking of publication downloads by researchers, storing records in a new PublicationDownload model. - Updated export endpoints to conditionally register downloads based on user authentication. - Enhanced researcher search response to indicate if publications were downloaded by the current user. - Updated environment configuration to include new JWT settings.
This commit is contained in:
@@ -11,3 +11,4 @@ authlib
|
||||
redis
|
||||
APScheduler==3.10.4
|
||||
requests
|
||||
python-jose[cryptography]
|
||||
|
||||
Reference in New Issue
Block a user