Skip to content

Commit

Permalink
[feat] Django v4 support (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Muñoz Cárdenas committed Mar 10, 2022
1 parent d8beb80 commit 03bdd03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django_saml2_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
from django.http import HttpRequest, HttpResponseRedirect
from django.shortcuts import render
from django.template import TemplateDoesNotExist
from django.utils.http import is_safe_url
try:
from django.utils.http import url_has_allowed_host_and_scheme as is_safe_url
except ImportError:
from django.utils.http import is_safe_url
from django.views.decorators.csrf import csrf_exempt
from django_saml2_auth.errors import INACTIVE_USER, INVALID_REQUEST_METHOD, USER_MISMATCH
from django_saml2_auth.exceptions import SAMLAuthError
Expand Down

0 comments on commit 03bdd03

Please sign in to comment.