Skip to content

Commit

Permalink
🔥 Delete compatibility shim
Browse files Browse the repository at this point in the history
We don't support Django < 4.2 anymore.
  • Loading branch information
sergei-maertens committed Jun 10, 2024
1 parent 905b609 commit 3a62c3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 0 additions & 8 deletions digid_eherkenning/compat.py

This file was deleted.

3 changes: 1 addition & 2 deletions digid_eherkenning/views/digid.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from onelogin.saml2.utils import OneLogin_Saml2_Error, OneLogin_Saml2_ValidationError

from ..choices import DigiDAssuranceLevels, SectorType
from ..compat import get_next_page
from ..forms import SAML2Form
from ..saml2.digid import DigiDClient
from ..utils import logout_user
Expand Down Expand Up @@ -145,7 +144,7 @@ def dispatch(self, request, *args, **kwargs):
raise PermissionDenied(_("You are not authenticated with Digid"))

client = DigiDClient()
return_to = get_next_page(self)
return_to = self.get_default_redirect_url()
logout_url = client.create_logout_request(
request, return_to=return_to, name_id=name_id
)
Expand Down

0 comments on commit 3a62c3e

Please sign in to comment.