Qeephp adjusts the ucenter to achieve single-point login. individual PHP projects and Ucenter integration

Source: Internet
Author: User
Qeephp integrates ucenter to achieve single-point login. the personal PHP project and Ucenter should be integrated, first, you need to deploy a ucenter project, download the ucenter program to Discuz official website download a ucenter program http://www.comsenz.com/downloads/insta Qeephp integration ucenter to achieve single-point login of personal PHP project and Ucenter integration

Preface

To use ucenter single-point login, you must first deploy a ucenter project

1. download the ucenter program

Go to the Discuz official website to download a ucenter program

Http://www.comsenz.com/downloads/install/ucenter

I downloaded the following version.

UCenter_1.6.0_ SC _UTF8.zip


II. installer

I won't talk about the php installation environment. I will deploy the downloaded ucenter program.

By the way, I deployed my qeephp program, which is the same as my project. ensure that the program runs normally first.

My configuration:

Ucenter: http://ucenter.webplus3.com

My project domain: http://www.nj-jz.com


III. start integration

1、UCenter_1.6.0_ SC _UTF8.zip unzip

2. set uc in the advanced \ examples \ api folder. copy the php file to the api folder under the root directory of your website. if there is no api, create an api folder (the api folder must be inRoot DirectoryMedium)

3. copy the include folder under the advanced \ examples folder to your projectRoot Directory. The folder contains a file named db_mysql.class.php, which is the class for connecting to the database.

4. copy the uc_client folder to the root directory of your website. before uc_client talked about the interface code, the root directory already has two folders: include and uc_client.

5. copy config. inc. php in the advanced \ examples folder to the root directory of your website. this is the configuration file for configuring UCenter.

6. add a new application in the ucenter background as follows:


For other attributes, click "submit" to save the application!

Return to the application list. the communication status should fail!

Don't worry. let's modify the configuration file.


4. modify ucenter configuration

1. edit the application. a configuration item is displayed below the application submission button.


Copy the configuration information to the top of the uc. php file mentioned in step (3) 2.

The first 20 lines of the added File (2-15 lines are copied configurations) are as follows:

 

At the same time, change the corresponding parameters in the config. inc. php file described in step 1 according to the configuration information to make it consistent with the configuration information generated by ucenter.

   
After completing the preceding steps, go back and check your ucenter background, update the cache, and check the application management to see if the communication is successful ??


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.