mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-12 05:28:34 +03:00
adds celery -O fair configuration
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
VERSION = "0.9.3"
|
||||
VERSION = "0.9.4"
|
||||
|
||||
API_DESCRIPTION = """
|
||||
#### API for the Auto-Archiver project, a tool to archive web pages and Google Sheets.
|
||||
|
||||
@@ -78,7 +78,7 @@ def authenticate_user(access_token):
|
||||
return False, f"email '{email}' not allowed"
|
||||
return True, email
|
||||
except exceptions.FirebaseError as e:
|
||||
logger.warning(f"Error verifying ID token: {str(e)}")
|
||||
logger.warning(f"Error verifying ID token: {str(e)[:80]}...")
|
||||
|
||||
# https://cloud.google.com/docs/authentication/token-types#access
|
||||
if type(access_token) != str or len(access_token) < 10: return False, "invalid access_token"
|
||||
|
||||
Reference in New Issue
Block a user