summaryrefslogtreecommitdiff
path: root/postgresqleu/util/pgauth.py
blob: caf96d9c0ca779dd4e78ebd567472cd416d50cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from django.views.decorators.csrf import csrf_exempt

import postgresqleu.auth

from .decorators import global_login_exempt


# Wrap the API endpoint and remove the requirement for global http
# basic auth.
@global_login_exempt
@csrf_exempt
def auth_api(*args, **kwargs):
    return postgresqleu.auth.auth_api(*args, **kwargs)