示例#1
0
文件: user.py 项目: Sinacosa/reddit
    def pre(self):
        OAuth2ResourceController.pre(self)
	if request.method != "OPTIONS":
            self.authenticate_with_token()
            self.set_up_user_context()
        self.run_sitewide_ratelimits()
示例#2
0
文件: user.py 项目: B-DAP/reddit
 def pre(self):
     OAuth2ResourceController.pre(self)
     self.authenticate_with_token()
     self.run_sitewide_ratelimits()
示例#3
0
文件: gold.py 项目: ozzie00/reddit
 def pre(self):
     OAuth2ResourceController.pre(self)
     self.authenticate_with_token()
     self.set_up_user_context()
     self.run_sitewide_ratelimits()
示例#4
0
 def pre(self):
     OAuth2ResourceController.pre(self)
     if request.method != "OPTIONS":
         self.authenticate_with_token()
         self.set_up_user_context()
     self.run_sitewide_ratelimits()
示例#5
0
文件: apiv1.py 项目: unprolix/reddit
 def pre(self):
     OAuth2ResourceController.pre(self)
     self.check_for_bearer_token()
     self.run_sitewide_ratelimits()
示例#6
0
 def pre(self):
     OAuth2ResourceController.pre(self)
     self.check_for_bearer_token()