Skip to content

Commit

Permalink
fix(saml): OneLogin_Saml2_Error not handled as error
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed May 4, 2024
1 parent 35fb813 commit 181b0d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions allauth/socialaccount/providers/saml/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def dispatch(self, request, organization_slug):
errors = ["invalid_response"]
error_reason = "Invalid response"
except OneLogin_Saml2_Error as e:
errors = ["error"]
error_reason = str(e)
if not errors:
errors = auth.get_errors()
Expand Down

0 comments on commit 181b0d6

Please sign in to comment.