How to get credentials in Google AppEngine Python37

前端 未结 1 1212
孤街浪徒
孤街浪徒 2020-12-21 06:31

I started new app in AppEngine Python3.7 stadard.

I am trying to get credentials using the following snippet, but its failing.

Anybody able to get cre

相关标签:
1条回答
  • 2020-12-21 07:03

    When using App Engine Standard with python 3.7, none of the google.xxx libraries are available. You have to build your own, or use standard Python libraries. This goes for: auth, users, images, search, mail, taskqueue, memcache, urlfetch, deferred, etc., and even the ndb datastore interface.

    For datastore, you use google-cloud-datastore or some 3rd party.

    For others, you use a standard Python library, e.g.: google.auth => rauth, google.appengine.api.memcache => python-memcached

    Read more here: https://cloud.google.com/appengine/docs/standard/python3/python-differences

    That page recommends Google Identity Platform or Firebase Authentication to do authorization.

    0 讨论(0)
提交回复
热议问题