Skip to content

Commit 34fd6f3

Browse files
authored
v1.3.4 (#313)
* chore: refactor idp_hinting - closes #302 * v1.3.4
1 parent 161d82d commit 34fd6f3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

djangosaml2/views.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ def load_sso_kwargs_authn_context(self, sso_kwargs):
181181
def load_sso_kwargs(self, sso_kwargs):
182182
""" Inherit me if you want to put your desidered things in sso_kwargs """
183183

184+
def add_idp_hinting(self, http_response):
185+
return add_idp_hinting(self.request, http_response) or http_response
186+
184187
def get(self, request, *args, **kwargs):
185188
logger.debug('Login process started')
186189
next_path = self.get_next_path(request)
@@ -388,7 +391,7 @@ def get(self, request, *args, **kwargs):
388391
)
389392

390393
# idp hinting support, add idphint url parameter if present in this request
391-
response = add_idp_hinting(request, http_response) or http_response
394+
response = self.add_idp_hinting(http_response) or http_response
392395
return response
393396

394397

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.3.3',
27+
version='1.3.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)