Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
config.py56 linesDownload Raw Back to flask_login
1from datetime import timedelta2 3#: The default name of the "remember me" cookie (``remember_token``)4COOKIE_NAME = "remember_token"5 6#: The default time before the "remember me" cookie expires (365 days).7COOKIE_DURATION = timedelta(days=365)8 9#: Whether the "remember me" cookie requires Secure; defaults to ``False``10COOKIE_SECURE = False11 12#: Whether the "remember me" cookie uses HttpOnly or not; defaults to ``True``13COOKIE_HTTPONLY = True14 15#: Whether the "remember me" cookie requires same origin; defaults to ``None``16COOKIE_SAMESITE = None17 18#: The default flash message to display when users need to log in.19LOGIN_MESSAGE = "Please log in to access this page."20 21#: The default flash message category to display when users need to log in.22LOGIN_MESSAGE_CATEGORY = "message"23 24#: The default flash message to display when users need to reauthenticate.25REFRESH_MESSAGE = "Please reauthenticate to access this page."26 27#: The default flash message category to display when users need to28#: reauthenticate.29REFRESH_MESSAGE_CATEGORY = "message"30 31#: The default attribute to retreive the str id of the user32ID_ATTRIBUTE = "get_id"33 34#: Default name of the auth header (``Authorization``)35AUTH_HEADER_NAME = "Authorization"36 37#: A set of session keys that are populated by Flask-Login. Use this set to38#: purge keys safely and accurately.39SESSION_KEYS = {40    "_user_id",41    "_remember",42    "_remember_seconds",43    "_id",44    "_fresh",45    "next",46}47 48#: A set of HTTP methods which are exempt from `login_required` and49#: `fresh_login_required`. By default, this is just ``OPTIONS``.50EXEMPT_METHODS = {"OPTIONS"}51 52#: If true, the page the user is attempting to access is stored in the session53#: rather than a url parameter when redirecting to the login view; defaults to54#: ``False``.55USE_SESSION_FOR_NEXT = False56 
codekingpro/portable-devtools · Team Ai