更新时间:2023-12-04 23:08:40
Nick Johnson最近发布了一个alpha版本的您可以使用的WSGI中间件。该API与应用程序引擎中的标准用户API非常相似。这是一种通过OpenID支持身份验证的方式(Alex Martelli在他的回答)。因此,您可以支持Google作为身份提供者以及其他人。如果你只是想为某些原因支持谷歌账户,你当然只能将它们列入白名单。
I need to add few more options for login and therefore need to customize create_login_url with some HTML code.
Is there a way to add on your code in default login screen of Google?
Environment: Python (Google App Engine)
I want to continue having the default Google ext class Users behavior in place.
Nick Johnson recently released an alpha version of a WSGI middleware that you could use. The API is very similar to the standard Users API in app engine. It is a way to support auth via OpenID (something Alex Martelli suggested in his answer). Therefore you are able to support Google as Identity Provider as well as others. If you only want to support Google accounts for some reason, you could certainly only whitelist them though.
Nick's blog announcement also lists some things to consider (these might be deal-breakers for you):