SSO configuration and application

Source: Internet
Author: User

Single Sign On (SSO) is one of the most popular solutions for enterprise business integration. SSO is defined in multiple application systems. Users only need to log on once to access all mutually trusted application systems. It includes a mechanism for ing the main logon to other applications for the login of the same user.
When a user accesses Application System 1 for the first time, the user is directed to the authentication system for Logon because the user has not yet logged on. Based on the login information provided by the user, the authentication system performs identity verification, if the verification is successful, a verification credential ticket should be returned to the user. When the user accesses another application, the ticket is carried as the authentication credential, after receiving the request, the application system sends the ticket to the authentication system for verification to check the validity of the ticket. After verification, you can access application system 2 and Application System 3 without having to log on again.
For more information, see the following description:
1. Open the [Security Configuration] module of the sharepoint management center, click "manage Single login Settings", as shown in:

The reason is that the Microsoft Single Sign-on Service is not running in the Service.

2. Open the control panel, Click Manage tools, and find the Microsoft Single Sign-on Service, as shown in,

 
Start it, for example:

Complete.

3. Go back to the Management Center> operations> Manage a single logon interface. Refresh the page and find that the configuration interface is normal, for example:

4. server settings. Click "Manage Server Settings", for example:

Click "OK ",

Click "OK" to create an SSO database in the SQL database ::


5. enterprise application definition settings. Click "manage enterprise application definition Settings", for example:

Click "Create Project ",

Click OK. For example:

This completes the SSO configuration.

6. Compile the SSO application.

Code
1 protected void Page_Load (object sender, EventArgs e)
2
3 {
4
5
6
7 string [] rgCredentials = null;
8
9 try
10
11 {
12
13
14
15 Credentials. GetCredentials (1, "chatroom", ref rgCredentials );
16
17 lb_username.Text = rgCredentials [0]. ToString ();
18
19 lb_pwd.Text = rgCredentials [1]. ToString ();
20
21 string url = "/chatroom/sso_login.asp? Name = "+ lb_username.Text +" & pwd = "+ lb_pwd.Text + "";
22
23 lb_msg.Text = "<a href =" + url + "target = '_ blank'> enter the chat room </a> ";
24
25
26
27}
28
29
30
31 catch (SingleSignonCredsNotFoundException ssoe)
32
33 {
34
35 // The information of the current user cannot be found in the SSO Database
36
37 if (SSOReturnCodes. SSO_E_CREDS_NOT_FOUND = ssoe. LastErrorCode)
38
39
40
41 {
42
43 string strSSOLogonFormURL = SingleSignonLocator. GetCredentialEntryUrl ("chatroom ");
44
45 lb_msg.Text = "<a href =" + strSSOLogonFormURL + "> sorry! The current database does not have your logon credential. Please create it! </A> ";
46
47}
48
49
50
51}
52
53}
54
55

7. Configure the webpart as shown in the following figure:

You cannot log in because the current account is not saved to the account corresponding to the chatroom. Click "Sorry! The current data recorder does not have your login information credential. Please create it! "Enter the link, for example:

Click OK, as shown in,

The user name and password have been removed. You can click "enter chat room" to log in automatically.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.