108536490: add the proxy_fix

This commit is contained in:
Rebecca Law
2015-11-30 14:32:58 +00:00
parent af382885d3
commit 3f017b30f2
9 changed files with 48 additions and 24 deletions

View File

@@ -13,14 +13,14 @@ class ItsdangerousSession(CallbackDict, SessionMixin):
class ItsdangerousSessionInterface(SessionInterface):
salt = 'cookie-session'
session_class = ItsdangerousSession
def get_serializer(self, app):
salt = app.config.get('DANGEROUS_SALT')
if not app.secret_key:
return None
return URLSafeTimedSerializer(app.secret_key,
salt=self.salt)
salt=salt)
def open_session(self, app, request):
s = self.get_serializer(app)