User API for Google App Engine far too restrictive?

倖福魔咒の 提交于 2020-01-13 10:53:13

问题


Looking at the Google App Engine API, it seems that despite all its great features, the User API is extremely limiting. It seems you can only authenticate people who have a Google account, or use an OpenID account, or via some OAuth kung fu (handshaking with a Facebook account etc).

This appears to be a major stumbling block for anyone who wants a proprietary user base by creating user accounts within the application. In short, I don't want my users to have to use or create a Google account to access my app.

Has anyone else come across this limitation and has it been a deal breaker for using the GAE? Am I missing something? It is possible to deploy my own Spring based security etc within the app and use my own User API? Comments on this issue greatly appreciated. Thanks.


回答1:


You're free to completely ignore the Users API and implement your own authentication system, as you would in any other hosting environment. Nothing about App Engine prevents you from doing so.

The Users API is just there as a convenience, in case you'd like to spare yourself the effort of re-implementing everything, and spare your users the inconvenience of filling out another sign up form and remembering another set of credentials.




回答2:


You can always implement your own user management system.

In my application I have used spring-security for this purpose. spring security 3.0.1 works perfectly fine with app engine 1.3.5. There may occur some issues integrating other versions of both. I found below links extremely useful :

  • http://www.google-app-engine.com/blog/post/Spring-security-fix-for-google-app-engine.aspx.
  • http://www.dotnetguru2.org/bmarchesson/index.php?p=1100
  • http://groups.google.com/group/google-appengine-java/browse_thread/thread/964e7f5e42840d9c


来源:https://stackoverflow.com/questions/3533144/user-api-for-google-app-engine-far-too-restrictive

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