从OAuth2 Flow结尾处获取用户详细信息

时间:2013-03-17 22:26:04

标签: python google-app-engine oauth

我不确定如何在成功完成oauth2之后获取使用细节。

代码:

from oauth2client.client import OAuth2WebServerFlow
flow = OAuth2WebServerFlow(...
...

auth_uri = flow.step1_get_authorize_url()
self.redirect(str(auth_uri))
....

credentials = flow.step2_exchange(code)
# credentials prints empty string

感谢。

0 个答案:

没有答案
相关问题