简体   繁体   English

如何使用Java在Google App Engine中创建登录页面?

[英]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.

相关问题 如何使用Java中的Google App Engine创建代理服务器? - How Create Your Proxy Server Using Google App Engine in Java? 尝试使用Google App Engine上的Restlets创建登录身份验证页面 - Trying to make a login authentication page using Restlets on Google App Engine 登录后如何使用Java在应用引擎上保留查询字符串(使用Google的`userService`)? - How to preserve a Query String after Login(using Google's `userService`) on app engine using Java? Google App Engine。 如何自定义登录页面? - Google App Engine. How to customize the login page? 如何在Google App Engine上使用Spring Framework创建表单登录名 - How to create a form login with Spring Framework on Google App Engine 如何使用Google App Engine(Java)创建剩余端点以将多部分数据上传到Google云存储 - How to create a rest endpoint using Google App Engine (Java) to upload multi part data to google cloud storage Web 站点登录 Java + Google App Engine - Web site login in Java + Google App Engine Facebook登录Google App Engine应用程序(Java) - Facebook Login in Google App Engine Application (Java) 如何使用Java在Google App Engine中创建docx文件 - how to create docx file in google app engine with java 如何使用Google App Engine(Java)创建String ObjectId - How to create String ObjectId with Google App Engine (Java)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM