@csrf_exempt
@oauth_scope('user_info')
def user_info(access_token, request):
  user = access_token.user
  data = {
      'username': user.username,
      'first_name': user.first_name,
      'last_name': user.last_name,
      'email': user.email}

  return HttpResponse(content=json.dumps(data),
                      content_type='application/json',
                      status=200)
Return basic information about a user.
dataset/ETHPy150Open Locu/djoauth2/example/djoauth2example/api/views.py/user_info