Skip to content

Commit

Permalink
v1.3.4 (#313)
Browse files Browse the repository at this point in the history
* chore: refactor idp_hinting - closes #302

* v1.3.4
  • Loading branch information
peppelinux authored Sep 28, 2021
1 parent 161d82d commit 34fd6f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion djangosaml2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ def load_sso_kwargs_authn_context(self, sso_kwargs):
def load_sso_kwargs(self, sso_kwargs):
""" Inherit me if you want to put your desidered things in sso_kwargs """

def add_idp_hinting(self, http_response):
return add_idp_hinting(self.request, http_response) or http_response

def get(self, request, *args, **kwargs):
logger.debug('Login process started')
next_path = self.get_next_path(request)
Expand Down Expand Up @@ -388,7 +391,7 @@ def get(self, request, *args, **kwargs):
)

# idp hinting support, add idphint url parameter if present in this request
response = add_idp_hinting(request, http_response) or http_response
response = self.add_idp_hinting(http_response) or http_response
return response


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.3.3',
version='1.3.4',
description='pysaml2 integration for Django',
long_description=read('README.md'),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 34fd6f3

Please sign in to comment.