开发者

I can't test a Google App using OpenID single sign-on on the AppEngine devserver, locally

开发者 https://www.devze.com 2023-02-13 00:53 出处:网络
I\'m starting to develop an application using App Engine (Python) that will be integrated in the Google Apps platform and will be sold in the Marketplace. I\'ve implemente开发者_StackOverflow中文版d t

I'm starting to develop an application using App Engine (Python) that will be integrated in the Google Apps platform and will be sold in the Marketplace. I've implemente开发者_StackOverflow中文版d the Single Sign-On openID authentication and it works fine when deployed, but doesn't work locally at all.

How can i do that locally? user.federated_identity() apparently does not work on the localhost.

--edit-- Precisely, what i need to do is to be able to run this tutorial on App Engine's devserver.


On localhost there's no point in verifying that the email matches the federated_id domain, so you should just add this to check_email:

def check_email(self, user):
  if os.environ.get('SERVER_SOFTWARE', '').startswith('Dev'):
    return True

It looks like if your consumer secret and key are set up correctly everything else should work and it will return the first entry from the calendar feed.

0

精彩评论

暂无评论...
验证码 换一张
取 消