def add_client(self, client_name, redirect_uri):
        
        try:
            self.db.clients
        except AttributeError:
            self.create_tables()
        
        client_id = self.generate_hash_sha1()
        client_secret = self.generate_hash_sha1()
        
        self.db.clients.insert(**{'client_id': client_id,
                                  'client_secret': client_secret,
                                  'redirect_uri': redirect_uri,
                                  'client_name': client_name})

        return client_id, client_secret
Return an auth plugin for the admin.
dataset/ETHPy150Open joaoqalves/web2py-oauth2/modules/oauth/storage/__init__.py/web2pyStorage.add_client--crossover with--dataset/ETHPy150Open openstack/sahara/sahara/utils/openstack/keystone.py/auth_for_admin