Skip to content

v1.3.4 #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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