|
|
|
@ -1,6 +1,5 @@
|
|
|
|
import random
|
|
|
|
import random
|
|
|
|
from datetime import UTC, datetime, timedelta
|
|
|
|
from datetime import UTC, datetime, timedelta
|
|
|
|
from time import time
|
|
|
|
|
|
|
|
from typing import Any, Optional, cast
|
|
|
|
from typing import Any, Optional, cast
|
|
|
|
|
|
|
|
|
|
|
|
from werkzeug.exceptions import NotFound, Unauthorized
|
|
|
|
from werkzeug.exceptions import NotFound, Unauthorized
|
|
|
|
@ -114,7 +113,6 @@ class WebAppAuthService:
|
|
|
|
"session_id": account.email,
|
|
|
|
"session_id": account.email,
|
|
|
|
"token_source": "webapp_login_token",
|
|
|
|
"token_source": "webapp_login_token",
|
|
|
|
"auth_type": "internal",
|
|
|
|
"auth_type": "internal",
|
|
|
|
"granted_at": int(time()),
|
|
|
|
|
|
|
|
"exp": exp,
|
|
|
|
"exp": exp,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|