def validate_redirect_uri(self, client_key, redirect_uri=None):
        client = Client.find_one({'client_key':client_key})
        
        return client != None and (
            len(client['callbacks']) == 1 and redirect_uri is None
            or redirect_uri in (x for x in client['callbacks']))
dataset/ETHPy150Open ib-lundgren/flask-oauthprovider/examples/mongo_demoprovider/provider.py/ExampleProvider.validate_redirect_uri/original