(self)
| 98 | |
| 99 | @gen.coroutine |
| 100 | def get(self): |
| 101 | if self.get_argument("oauth_token", None): |
| 102 | # Ensure that any exceptions are set on the returned Future, |
| 103 | # not simply thrown into the surrounding StackContext. |
| 104 | try: |
| 105 | yield self.get_authenticated_user() |
| 106 | except Exception as e: |
| 107 | self.set_status(503) |
| 108 | self.write("got exception: %s" % e) |
| 109 | else: |
| 110 | yield self.authorize_redirect() |
| 111 | |
| 112 | |
| 113 | class OAuth1ClientRequestParametersHandler(RequestHandler, OAuthMixin): |
nothing calls this directly
no test coverage detected