Skip to content

Commit

Permalink
Fix Beaker cookie-based sessions
Browse files Browse the repository at this point in the history
- Resolves #94.
  • Loading branch information
jrwdunham committed May 27, 2020
1 parent bcfb856 commit 1ce3e90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion onlinelinguisticdatabase/config/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ def make_app(global_conf, full_stack=False, static_files=True, **app_conf):

# Routing/Session Middleware
app = RoutesMiddleware(app, config['routes.map'], singleton=False)
app = SessionMiddleware(app, config)
app = SessionMiddleware(
app,
config,
samesite='None',
secure=True)

# At some point it seems that Pylons converts the Content-Type of any
# response without a 200 OK status to 'text/html; charset=utf-8'. Well
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def fixer(match):
"Topic :: Education"
],
install_requires=[
"Beaker==1.10.0",
"WebTest<2.0", # WebTest 2.0.1 requires WebOb>=1.2 and OLD needs WebOb <=1.1.1 -- conflict
"Pylons==1.0",
"FormEncode==1.2.4", # vs. >= 1.2.5 include changes that break the OLD
Expand Down

0 comments on commit 1ce3e90

Please sign in to comment.