code: def __load_settings_from_dict(self, settings):
          
          errors = self.check_settings(settings)
          if len(errors) == 0:
              self.__errors = []
              self.__sp = settings['sp']
              self.__idp = settings.get('idp', {})
              self.__strict = settings.get('strict', False)
              self.__debug = settings.get('debug', False)
              self.__security = settings.get('security', {})
              self.__contacts = settings.get('contactPerson', {})
              self.__organization = settings.get('organization', {})
  
              self.__add_default_values()
              return True
  
          self.__errors = errors
          return False
docs: Loads settings info from a settings Dict
  
          :param settings: SAML Toolkit Settings
          :type settings: dict
  
          :returns: True if the settings info is valid
          :rtype: boolean