Wrong naming in classmethods. Sorry.
This commit is contained in:
parent
998032ea52
commit
8e78e2dc9e
2 changed files with 3 additions and 3 deletions
|
@ -84,7 +84,7 @@ class TokenEndpoint(object):
|
|||
return dic
|
||||
|
||||
@classmethod
|
||||
def response(self, dic, status=200):
|
||||
def response(cls, dic, status=200):
|
||||
"""
|
||||
Create and return a response object.
|
||||
"""
|
||||
|
|
|
@ -64,7 +64,7 @@ class UserInfoEndpoint(object):
|
|||
return dic
|
||||
|
||||
@classmethod
|
||||
def response(self, dic):
|
||||
def response(cls, dic):
|
||||
|
||||
response = JsonResponse(dic, status=200)
|
||||
response['Cache-Control'] = 'no-store'
|
||||
|
@ -73,7 +73,7 @@ class UserInfoEndpoint(object):
|
|||
return response
|
||||
|
||||
@classmethod
|
||||
def error_response(self, code, description, status):
|
||||
def error_response(cls, code, description, status):
|
||||
|
||||
response = HttpResponse(status=status)
|
||||
response['WWW-Authenticate'] = 'error="{0}", error_description="{1}"'.format(code, description)
|
||||
|
|
Loading…
Reference in a new issue