[英]How to create login page in google app engine using java?
I would like to create my own login page instead of using the default one that is from google app engine. 我想创建自己的登录页面,而不是使用来自Google App Engine的默认登录页面。 After the user click the login button, it will redirect them to the home page of my website.
用户单击登录按钮后,它将把他们重定向到我网站的主页。 so is there a way to do so?
有办法吗?
I am using java as programming language. 我正在使用Java作为编程语言。
Would appreciate if anyone could help. 如果有人可以帮助,将不胜感激。 Thanks.
谢谢。
Doing this in App Engine is no different to doing it in any other Java servlet environment, except that you're storing your user data in the datastore. 在App Engine中执行此操作与在任何其他Java Servlet环境中执行此操作没有什么不同,除了您要在数据存储区中存储用户数据。 How exactly you implement it is up to you and depends on a number of factors;
具体实施方式取决于您,取决于许多因素。 a complete tutorial on how to build a user authentication system seems out of scope for a stack overflow answer.
有关如何构建用户身份验证系统的完整教程似乎超出了堆栈溢出答案的范围。
I'd strongly recommend using a prebuilt authentication solution, however; 但是,我强烈建议您使用预建的身份验证解决方案; if you don't like Google User authenticaiton, App Engine comes with built in OpenID authentication as an option.
如果您不喜欢Google用户身份验证,可以选择使用App Engine内置的OpenID身份验证。 Rolling your own makes you responsible for issues like secure password storage, which is hard to get right, exposes your users to potential security issues, and forces them to create yet another user account instead of using an existing one.
自行滚动会使您对难以解决的问题(如安全密码存储)负责,使用户面临潜在的安全问题,并迫使他们创建另一个用户帐户,而不使用现有帐户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.