Skip to content

v1.3.2 #298

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 4 commits into from
Jun 20, 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
15 changes: 11 additions & 4 deletions djangosaml2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def get(self, request, *args, **kwargs):
},
})
except TemplateDoesNotExist as e:
logger.error(
logger.debug(
f'TemplateDoesNotExist: [{self.post_binding_form_template}] - {e}'
)

Expand Down Expand Up @@ -596,18 +596,25 @@ def get(self, request, *args, **kwargs):
logger.warning(
'The session does not contain the subject id for user %s', request.user)

_error = None
try:
result = client.global_logout(subject_id)
except LogoutError as exp:
logger.exception(
'Error Handled - SLO not supported by IDP: {}'.format(exp))
auth.logout(request)
state.sync()
return self.handle_unsupported_slo_exception(request, exp)
_error = exp
except UnsupportedBinding as exp:
logger.exception(
'Error Handled - SLO - unsupported binding by IDP: {}'.format(exp))
_error = exp

auth.logout(request)
state.sync()

if _error:
return self.handle_unsupported_slo_exception(request, _error)


if not result:
logger.error(
"Looks like the user %s is not logged in any IdP/AA", subject_id)
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.1',
version='1.3.2',
description='pysaml2 integration for Django',
long_description=read('README.md'),
long_description_content_type='text/markdown',
Expand Down