How do I create a consent screen in Google App Engine Python

喜你入骨 提交于 2019-12-11 09:22:46

问题


I've been using Google App Engine for Python for a while now with webapp2. Until now I've been doing the following to get access to user accounts:

    user = users.get_current_user()

However, I'm pretty sure that this isn't really an "app". Normal GAE apps have a concept screen to "approve" and have to exchange API keys etc, under the hood. How do I do this with Python?

Thanks!


回答1:


There is no such thing as "normal GAE apps", I mean it really depends on what your app is doing. If you want to act on behalf of the user then yes you need to use an OAuth2 authentication flow, so the user can allow your app accessing his data.

A good starting point for you would be this example app which explains how to create this flow in Python to access the user's Google Drive.



来源:https://stackoverflow.com/questions/22978631/how-do-i-create-a-consent-screen-in-google-app-engine-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!