Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Check token validity when verifying OAuth2 requests.

  • Loading branch information...
commit 3dbeaa6bc0448be434d8f83c1939acd773d9206e 1 parent 183ad20
Max Goodman authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  r2/r2/controllers/oauth2.py
1  r2/r2/controllers/oauth2.py
View
@@ -168,6 +168,7 @@ def pre(self):
try:
access_token = OAuth2AccessToken.get_token(self._get_bearer_token())
require(access_token)
+ require(access_token.check_valid())
c.oauth2_access_token = access_token
account = Account._byID36(access_token.user_id, data=True)
require(account)
Please sign in to comment.
Something went wrong with that request. Please try again.