Implementation principle:
Use <SCRIPT type = "text/JavaScript" src = "http: // localhost: 7771/ssosite/ssocontext. aspx? APP = Portal "> </SCRIPT>Remotely call the script on the Single Sign-on system to obtain the encrypted user logon ticket information and automatically bind it toThe corresponding fields are automatically submitted to the background. The background decrypts the user logon ticket information submitted by the foreground to determine whether the user has successfully logged on to the single-point logon system. If the user has logged on to the system home page, if the user has not logged on to the system, go to the Single Sign-on system logon page. Use des to encrypt user login ticket information. Different application systems use different keys.
CodeDownload(Vs2008 + eclipse3.2)
The Lightweight Single Sign-on system solution includes the following items:
LPublic ComponentsSsolab. ssoserver. Components
LSingle Sign-On SystemSsolab. ssoserver. webapp
LDemonstration of Enterprise Portal SystemSsolab. Portal. webapp
LHuman Resource Management System demonstrationSsolab. app1. webapp
LFinancial Management System demonstrationSsolab. app2. webapp
LOnline office system demonstrationApp3(Java)
The entire solution runs as follows:
1. Access the Enterprise Portal System http: // localhost: 7772/portal/default. aspx.
Because you have not logged on to the single-point logon system, you can jump to the single-point logon system user logon page http: // localhost: 7771/ssosite/signin. aspx
2. Enter the correct user name and password to go to the home page of the enterprise portal system, http: // localhost: 7772/portal/default. aspx. the user name and application system address of the current login user are displayed.
3. Select the human resource management system and open the home page of the human resource management system, http: // localhost: 7773/app1/default. aspx. the user name of the current login user is displayed.
4. Select the financial management system and go to the home page of the financial management system, http: // localhost: 7774/app2/default. aspx. the user name of the current logon user is displayed.
4. Select an online office system and open http: // localhost: 8080/app3/Default. jsp on the home page of the online office system. The user name of the current logon user is displayed.