MCPcopy Create free account
hub / github.com/EasyIME/PIME / get

Method get

python/python3/tornado/test/auth_test.py:145–159  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

143
144 @gen.coroutine
145 def get(self):
146 if self.get_argument("code", None):
147 user = yield self.get_authenticated_user(
148 redirect_uri=self.request.full_url(),
149 client_id=self.settings["facebook_api_key"],
150 client_secret=self.settings["facebook_secret"],
151 code=self.get_argument("code"),
152 )
153 self.write(user)
154 else:
155 self.authorize_redirect(
156 redirect_uri=self.request.full_url(),
157 client_id=self.settings["facebook_api_key"],
158 extra_params={"scope": "read_stream,offline_access"},
159 )
160
161
162class 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