We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 105638a commit df53d19Copy full SHA for df53d19
src/onelogin/saml2/settings.py
@@ -338,6 +338,10 @@ def check_settings(self, settings):
338
if 'sp' not in settings or len(settings['sp']) == 0:
339
errors.append('sp_not_found')
340
else:
341
+ # check_sp_certs uses self.__sp so I add it
342
+ old_sp = self.__sp
343
+ self.__sp = settings['sp']
344
+
345
sp = settings['sp']
346
security = {}
347
if 'security' in settings:
@@ -415,6 +419,9 @@ def check_settings(self, settings):
415
419
('url' not in organization or len(organization['url']) == 0):
416
420
errors.append('organization_not_enought_data')
417
421
break
422
+ # Restores the value that had the self.__sp
423
+ if 'old_sp' in locals():
424
+ self.__sp = old_sp
418
425
426
return errors
427
0 commit comments