Question:
Occasionally, we may hear that the data on this website has been leaked, and the user data on that website has been leaked, so that the user can change the login password again, we pay more and more attention to the security of user data, especially for websites with high confidentiality requirements.
Body:
How can we solve security problems?
Solution:
1. Avoid SQL Injection problems.
2. User Logon password encryption.
3. Use https secure access.
4. Use a password from a third-party device such as a bank.
5 ,...
The first three solutions are quite common. Here we mainly talk about the fourth solution. On the basis of the first three solutions, we use third-party devices, just like online banking, which require dynamic passwords, to log on to the system. According to the requirements, the company uses third-party devices, ESS devices, need to implement dynamic password verification function on the basis of CAS. That is to say, we have to modify the CAS source code again. It cannot be said that CAs is not doing very well in terms of Function Extension, but it is still possible to extend the code.
Specific requirements:
1. You can dynamically switch the page. If you need to use the auto scaling dynamic password security, you can switch to the auto scaling page. You do not need to use the auto scaling device to switch to the page without a dynamic password.
2. When a user is added, if the user needs to use the ESS device, the user will be displayed. If the user does not need to see the relevant device information or add the corresponding device information.
Specific solutions:
In order not to modify more source code and cause problems, the CAS and ESS devices should be combined to solve the problem as follows.
1. Dynamic switching page
A realize Page Dynamic switch, first need two login pages, In order to switch, copy CAS login page a CAS \ WEB-INF \ view \ JSP \ Copy default folder, rename to ESS, we will rename it and then put it in.
B copy and rename CAS \ WEB-INF \ classess under the default_views.properties, Here renamed to ess_views.properties, open the file we added, change all the default path to ESS path, that is, change it to the name of the folder we created.
C then open cas. properties under CAS \ WEB-INF, modify cas. viewresolver. basename = ess_views
2. dynamic password verification
Add the dynamic password field, which is consistent with the systemid process: token (the dynamic password verification of the ESS device is based on the same algorithm used by the client and server, so that the same dynamic password is generated every minute, call the interface to verify the matching with the server)
3. Hide and display the control input box
Put the modified configuration variables in the XML file or. in the properties file, you can read the configuration file and write it to the application or session. Then, you can use the El expression or jstl expression to obtain the data in the session or application to determine whether the data is hidden or displayed.
Summary:
I believe there is no problem that cannot be solved, as long as you want to solve it! There are always more problems!
(6) connection between CAS framework extension and CAS source code modification of SSO and ESS dynamic password verification