Beispiel #1
0
def setup_secure_cookies(application):
    session_timeout = application.config['EQ_SESSION_TIMEOUT_SECONDS']
    grace_period = application.config[
        'EQ_SESSION_TIMEOUT_GRACE_PERIOD_SECONDS']
    application.secret_key = application.config['EQ_SECRET_KEY']
    application.permanent_session_lifetime = timedelta(
        seconds=session_timeout + grace_period)
    application.session_interface = SHA256SecureCookieSessionInterface()
    application.config['SESSION_COOKIE_SECURE'] = True
Beispiel #2
0
def setup_secure_cookies(application):
    application.secret_key = application.eq["secret_store"].get_secret_by_name(
        "EQ_SECRET_KEY"
    )
    application.session_interface = SHA256SecureCookieSessionInterface()
Beispiel #3
0
def setup_secure_cookies(application):
    application.secret_key = settings.EQ_SECRET_KEY
    application.permanent_session_lifetime = timedelta(
        seconds=settings.EQ_SESSION_TIMEOUT)
    application.session_interface = SHA256SecureCookieSessionInterface()
    application.config['SESSION_COOKIE_SECURE'] = True
Beispiel #4
0
def setup_secure_cookies(application):
    session_timeout = application.config['EQ_SESSION_TIMEOUT_SECONDS']
    application.secret_key = application.eq['secret_store'].get_secret_by_name(
        'EQ_SECRET_KEY')
    application.permanent_session_lifetime = timedelta(seconds=session_timeout)
    application.session_interface = SHA256SecureCookieSessionInterface()