Skip to content

Commit f45bd7b

Browse files
committed
Fixed missing import in views
Remove py35 support: "ImportError: No module named 'secrets'" -> 'secrets' is a standard library introduced in Python 3.6
1 parent abfe310 commit f45bd7b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

djangosaml2/tests/attribute-maps/django_saml_uri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
PKCS_9 = 'urn:oid:1.2.840.113549.1.9.1.'
33
UCL_DIR_PILOT = 'urn:oid:0.9.2342.19200300.100.1.'
44

5-
MAP = {
5+
MAP = {
66
'identifier': 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
77
'fro': {
88
X500ATTR_OID+'3': 'first_name', # cn

djangosaml2/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from django.template import TemplateDoesNotExist
2929
from django.utils.http import is_safe_url
3030
from django.views.decorators.csrf import csrf_exempt
31+
from django.views.decorators.http import require_POST
3132
from saml2 import BINDING_HTTP_REDIRECT, BINDING_HTTP_POST
3233
from saml2.client_base import LogoutError
3334
from saml2.metadata import entity_descriptor

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{35,36,37,38}-django22
3+
py{36,37,38}-django22
44
py{36,37,38}-django30
55
py{36,37,38}-djangomaster
66

0 commit comments

Comments
 (0)