Skip to content

Commit

Permalink
fix: samesite cookie configuration fix for django version <3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Apr 28, 2021
1 parent c28695e commit 6ba0ada
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion djangosaml2/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from django.utils.http import http_date


SAMESITE_NONE = None if (VERSION[0] < 3) else 'None'
SAMESITE_NONE = None if (VERSION[0] < 3.1) else 'None'


class SamlSessionMiddleware(SessionMiddleware):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def read(*rnames):

setup(
name='djangosaml2',
version='1.1.3',
version='1.1.4',
description='pysaml2 integration for Django',
long_description=read('README.md'),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 6ba0ada

Please sign in to comment.