Exemplo n.º 1
0
def grantgetter(client_id, code):
    if not is_uuid4(client_id):
        return False
    return models.Grant.first(models.Grant.client.client_id == client_id, models.Grant.code == code)
Exemplo n.º 2
0
def grantgetter(client_id, code):
    if not is_uuid4(client_id):
        return False
    return models.Grant.first(models.Grant.client.client_id == client_id,
                              models.Grant.code == code)
Exemplo n.º 3
0
def clientgetter(client_id):
    # FIXME Allow direct token access for dev with email/pwd
    if not is_uuid4(client_id):
        return False
    return models.Client.first(models.Client.client_id == client_id)
Exemplo n.º 4
0
def clientgetter(client_id):
    # FIXME Allow direct token access for dev with email/pwd
    if not is_uuid4(client_id):
        return False
    return models.Client.first(models.Client.client_id == client_id)