Skip to content

Commit 6ba0ada

Browse files
committed
fix: samesite cookie configuration fix for django version <3.1
1 parent c28695e commit 6ba0ada

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

djangosaml2/middleware.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from django.utils.http import http_date
1010

1111

12-
SAMESITE_NONE = None if (VERSION[0] < 3) else 'None'
12+
SAMESITE_NONE = None if (VERSION[0] < 3.1) else 'None'
1313

1414

1515
class SamlSessionMiddleware(SessionMiddleware):

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def read(*rnames):
2424

2525
setup(
2626
name='djangosaml2',
27-
version='1.1.3',
27+
version='1.1.4',
2828
description='pysaml2 integration for Django',
2929
long_description=read('README.md'),
3030
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)