简体   繁体   English

带有tomcat身份验证的“正确”登录页面

[英]“proper” login page with tomcat authentication

I'm trying to create a user login page for my jersey webapp on tomcat that behaves like all the other pages on the web. 我试图在tomcat上为我的jersey webapp创建一个用户登录页面,该页面的行为类似于网络上的所有其他页面。 That is, the user sees a nice login page opposed to a popup (like BASIC tomcat authentication) and the passwords are hashed before comparing to the DB entries. 也就是说,用户看到一个不错的登录页面,而不是弹出窗口(例如BASIC tomcat身份验证),并且在与数据库条目进行比较之前对密码进行了哈希处理。 Is tomcat authentication the right way to do this? Tomcat身份验证是执行此操作的正确方法吗?

It seems that I want to use DIGEST authentication for md5 hashing but FORM authentication to get a page rather than a popup. 似乎我想对MD5散列使用DIGEST身份验证,但是对页面而不是弹出窗口使用FORM身份验证。 Perhaps there are java libraries to do this instead, and I should simply not use tomcat for this. 也许有Java库可以代替它,我不应该为此使用tomcat。

When using the form submission approach, BASIC versus DIGEST does not come into play at all since it isn't using HTTP Authentication. 当使用表单提交方法时,BASIC vs DIGEST根本不起作用,因为它不使用HTTP身份验证。 It simply sends the user id and password via an HTTP POST as parameters to a URL that is predefined by the Servlet specification, allowing the Servlet container to process them. 它只是通过HTTP POST将用户ID和密码作为参数发送到Servlet规范预定义的URL,从而允许Servlet容器对其进行处理。 Security of the data using this method is achieved through the use of SSL. 使用SSL可以实现使用此方法的数据安全性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何基于表单的身份验证(tomcat领域),如何强制tomcat始终将第一个请求重定向到登录页面 - how to force tomcat to always redirect the 1st request to login page in case of form based authentication(tomcat realm) Tomcat Realm身份验证-登录后 - Tomcat Realm Authentication - After login 每当页面重新加载时如何使用tomcat身份验证 - How to use tomcat authentication whenever a page reloads 在Tomcat上运行的Web应用程序的登录页面 - Login page for a web application running on Tomcat 如何拒绝Apache Tomcat登录页面? - How to refuse Apache Tomcat login page? 403和CORS错误访问tomcat登录页面 - 403 and CORS error accessing tomcat login page 使用Httpclient登录页面身份验证并导航到下一页 - Login page authentication with Httpclient and navigate to next page 如何获取在登录/错误文件中显示的图像和CSS以进行Tomcat身份验证 - How to get Images and CSS shown in login/error files for Tomcat authentication 升级tomcat嵌入式版本后,基本登录身份验证失败 - Basic login authentication fails after upgrading tomcat-embeded versions Spring Security:如果认证失败,则重定向到登录页面 - Spring Security : Redirecting to login page if the authentication failed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM