예제 #1
0
파일: auth.py 프로젝트: LaPosteSNA/ban
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)
예제 #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)
예제 #3
0
파일: auth.py 프로젝트: LaPosteSNA/ban
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)
예제 #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)