Skip to content

Commit 07bb2ba

Browse files
committed
Reset errorReason attribute of the auth object after each Process method
1 parent 90474ff commit 07bb2ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/onelogin/saml2/auth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def process_response(self, request_id=None):
9595
:raises: OneLogin_Saml2_Error.SAML_RESPONSE_NOT_FOUND, when a POST with a SAMLResponse is not found
9696
"""
9797
self.__errors = []
98+
self.__error_reason = None
9899

99100
if 'post_data' in self.__request_data and 'SAMLResponse' in self.__request_data['post_data']:
100101
# AuthnResponse -- HTTP_POST Binding
@@ -136,6 +137,7 @@ def process_slo(self, keep_local_session=False, request_id=None, delete_session_
136137
:returns: Redirection url
137138
"""
138139
self.__errors = []
140+
self.__error_reason = None
139141

140142
get_data = 'get_data' in self.__request_data and self.__request_data['get_data']
141143
if get_data and 'SAMLResponse' in get_data:

0 commit comments

Comments
 (0)