def auth_handler(self, mock=False):
        auth_config = self.config['server']['auth']
        handler_class = auth_config['class']

        if mock or handler_class == 'MockAuthHandler':
            return self.mock_auth_handler()
        if handler_class == 'OAuthHandler':
            return self.oauth_handler()
        if handler_class == 'RestOAuthHandler':
            return self.rest_oauth_handler()
        raise UsageError('Unexpected auth handler class: %s, expected OAuthHandler or MockAuthHandler' % (handler_class,))
Returns information about a network.
dataset/ETHPy150Open codalab/codalab-cli/codalab/lib/codalab_manager.py/CodaLabManager.auth_handler--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/config/__init__.py/ConfigWriter._UnlockedGetNetwork