code: def register_auth_system(self, auth_system):
          
          auth_system_settings = dbconfig.get('auth_system')
  
          if auth_system.name not in auth_system_settings['available']:
              auth_system_settings['available'].append(auth_system.name)
              dbconfig.set('default', 'auth_system', DBCChoice(auth_system_settings))
  
          if auth_system.name == auth_system_settings['enabled'][0]:
              self.active_auth_system = auth_system
              auth_system().bootstrap()
              logger.debug('Registered {} as the active auth system'.format(auth_system.name))
              return True
  
          else:
              logger.debug('Not trying to load the {} auth system as it is disabled by config'.format(auth_system.name))
              return False
docs: Register a given authentication system with the framework. Returns `True` if the `auth_system` is registered
          as the active auth system, else `False`
  
          Args:
              auth_system (:obj:`BaseAuthPlugin`): A subclass of the `BaseAuthPlugin` class to register
  
          Returns:
              `bool`