简体   繁体   中英

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

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM