From b610af74389a44bd4365f7d6792ec95985ebe047 Mon Sep 17 00:00:00 2001 From: Keith Mitchell Date: Tue, 11 Feb 2014 13:22:55 -0800 Subject: [PATCH] OAuth: ApiV1Controller must check_for_bearer_token --- r2/r2/controllers/apiv1.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/r2/r2/controllers/apiv1.py b/r2/r2/controllers/apiv1.py index fde7e7907..fd3b7740a 100644 --- a/r2/r2/controllers/apiv1.py +++ b/r2/r2/controllers/apiv1.py @@ -26,6 +26,9 @@ from r2.controllers.oauth2 import OAuth2ResourceController, require_oauth2_scope from r2.lib.jsontemplates import IdentityJsonTemplate class APIv1Controller(OAuth2ResourceController): + def pre(self): + self.check_for_bearer_token() + def try_pagecache(self): pass