Index
headers
class AuthorizationMiddleware(object):
def resolve(self, next, root, info, **args):
if info.field_name == 'user':
auth_header = info.context.META.get('HTTP_AUTHORIZATION')
if valid_header(auth_header):
return None
return next(root, info, **args)
def resolve(self, next, root, info, **args):
if info.field_name == 'user':
auth_header = info.context.META.get('HTTP_AUTHORIZATION')
if valid_header(auth_header):
return None
return next(root, info, **args)