MCPcopy
hub / github.com/tornadoweb/tornado / get

Method get

tornado/test/auth_test.py:155–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153
154 @gen.coroutine
155 def get(self):
156 if self.get_argument("code", None):
157 user = yield self.get_authenticated_user(
158 redirect_uri=self.request.full_url(),
159 client_id=self.settings["facebook_api_key"],
160 client_secret=self.settings["facebook_secret"],
161 code=self.get_argument("code"),
162 )
163 self.write(user)
164 else:
165 self.authorize_redirect(
166 redirect_uri=self.request.full_url(),
167 client_id=self.settings["facebook_api_key"],
168 extra_params={"scope": "read_stream,offline_access"},
169 )
170
171
172class FacebookServerAccessTokenHandler(RequestHandler):

Callers

nothing calls this directly

Calls 5

get_argumentMethod · 0.80
full_urlMethod · 0.80
writeMethod · 0.45
authorize_redirectMethod · 0.45

Tested by

no test coverage detected