blob: 53816b6e40da50027bb7d9bccbe360d534ee6467 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Functions for checking authantication for API clients.
def get_credentials(request):
'''Return username, password of API client.
They're assumed to be conveyed in an Authorization header using
Basic Auth.
'''
raise AuthenticationError('No Authorization header')
class AuthenticationError(Exception):
pass
|