How to use the single sign-on function of the Mail System

Source: Internet
Author: User

We believe that everyone has this experience. For example, it is difficult for many people with many bank cards to remember the passwords of each card. Modern people have a wide range of interests and hobbies, sports and fitness clubs, entertainment games and leisure, shopping and financial management, and other occasions are indispensable to get the entry-level "pass", you need to enter a variety of passwords. Similar situations are common in enterprises. Nowadays, some enterprises are engaged in informatization construction, and logistics, data flow, and capital flow are incorporated into various systems for management. Staff often need to switch between different systems, entering different passwords is not only cumbersome, but also error-prone. Is there a possibility that many office systems can be integrated into one point. You only need to log on to a system and log on to other systems without frequent switching? The U-mail server provides the "Single Sign-On" function, saving you the trouble of memorizing passwords and repeated logins.

Implementation process:

Next we will take php as an example to look at its operation steps:

1. Create a database and corresponding tables, and be familiar with its structure;

2. Confirm that PHP is connected to the database;

3. Open OA and log on to the logon page;

4. Check whether the logon is successful on the Single Sign-On page? If the logon succeeds, you can perform single-point logon.

A) obtain the user ID based on the user's login OA name;

B) query the email user name and email address based on the ID;

C) click the button to log on to the mailbox.

Create a database and corresponding tables first:

650) This. width = 650; "src =" http://www.comingchina.com/upfile/2014/06/23/20140623100137_210.jpg "/>

After the table is created, connect to the database through PHP (This database can be a table in your OA)

650) This. width = 650; "src =" http://www.comingchina.com/upfile/2014/06/23/20140623100158_158.jpg "/>

The following result is displayed:

650) This. width = 650; "src =" http://www.comingchina.com/upfile/2014/06/23/20140623100217_772.jpg "/>

Reflected in the browser, as shown below:

650) This. width = 650; "src =" http://www.comingchina.com/upfile/2014/06/23/20140623100242_724.jpg "/>

Obtain the information stored in the email address based on the user name submitted during logon. Of course, this is the simplest practice. You can also use session or other methods to handle it:

650) This. width = 650; "src =" http://www.comingchina.com/upfile/2014/06/23/20140623100257_211.jpg "/>

Then, follow the instructions in the API documentation, for example:

650) This. width = 650; "src =" http://www.comingchina.com/upfile/2014/06/23/20140623100312_130.jpg "/>

Combine the form in the API documentation instructions to the above page:

650) This. width = 650; "src =" http://www.comingchina.com/upfile/2014/06/23/20140623100324_345.jpg "/>

And make some changes as needed. You do not need to hide them here, and change the domain name to a specific domain name. These can be directly generated using the database query method, then you can log on by directly clicking the "Logon email" button.

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.