update buckler middleware

This commit is contained in:
iou1name 2020-11-12 13:18:19 -05:00
parent c80fe8eac4
commit dc82d87d67
2 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,7 @@ class BucklerSessionInterface(SessionInterface):
response.set_cookie( response.set_cookie(
'userid', 'userid',
session.cookies['userid'], session.cookies['userid'],
domain=config.server_domain,
max_age=30*24*60*60, max_age=30*24*60*60,
secure=True, secure=True,
httponly=True, httponly=True,
@ -81,6 +82,7 @@ class BucklerSessionInterface(SessionInterface):
response.set_cookie( response.set_cookie(
'session', 'session',
session.cookies['session'], session.cookies['session'],
domain=config.server_domain,
max_age=30*24*60*60, max_age=30*24*60*60,
secure=True, secure=True,
httponly=True, httponly=True,
@ -108,6 +110,7 @@ def require_auth():
resp.set_cookie( resp.set_cookie(
'redirect', 'redirect',
request.url, request.url,
domain=config.server_domain,
secure=True, secure=True,
httponly=True, httponly=True,
samesite='strict') samesite='strict')

View File

@ -12,6 +12,7 @@ FEEDS = [
"http://website2.com/rss", "http://website2.com/rss",
] ]
server_domain = 'steelbea.me'
buckler = { buckler = {
'url': "http://127.0.0.1:5400/buckler", 'url': "http://127.0.0.1:5400/buckler",
'app_id': 1, 'app_id': 1,