Building a Server Side Application

Building a Server Side Application

You can create an extension to provide single sign-on using Zoho CRM to a number of web and mobile applications using SAML and OAuth 2.0 protocols. Read this link to know more about creating a connected application with any third-party web service. You can also configure SSO to any custom php application that you've created and wish to provide them along with the extension bundle.

There are 3 steps involved in establishing a SAML SSO
  1. Creating a connected application in Zoho Developer Console 
  2. Configuring SAML settings in your php application 
  3. Configuring SAML settings in Zoho Developer Console 

 Create a connected application

Before you configure the SSO settings in your php application, you will have to create a connected app in Zoho Developer Console to get the IdP credentials.

To create a connected app
  1. In the Zoho Developer console homepage, click Extensions for Zoho CRM.
  2. Click Edit below the extension for which your app will be created.
  3. Click Connected App in the left pane of the Extension Details page.
  4. Click Create Connected App.
  5. Provide a name and description for the app.
  6. Choose Hosting : Select Server side application
  7. Specify Base URL : https://<your local_server_site : port_no>, Production URL : https://<your production_site.com>
  8. Click Create.
  9. The connected application will be created and you will be redirected to the Connected App Details page where you can configure SAML Settings.


Configure SAML settings to the Hello World Application

To connect your custom application with Zoho CRM, you will have to configure the SAML Identity Provider details in your application.

To configure SAML IdP settings to your application
  1. Download the HelloWorld  files from this link to add them to your php project.
  2. Extract the files and keep them in your root folder from the downloaded zip file and rename it as SAML.
  3. Add this folder to your php project.
  4. In your php project, open the file, saml_config.ini from the config subfolder in the saml folder.
    Please note that, this folder name will be a part of your ACS URL and hence the name should be in lowercase.
  5. Update the Entity ID and ACS URL of your application.
    1. ACS URL - <https://yourdomainname.com/saml/login.php>
    2. Entity ID - <https://yourdomainname.com%3E/
  6. Obtain the IdP, Login and Logout URLs of the connected app you've created and paste it here.
    These details can be obtained from the SAML settings page of your connected app in Zoho Developer Console.




      7. Save and update the saml_config.ini file.
      8. Download the IdP certificate from the Connected App Details page in Zoho Developer Console.


      9. Open the certificate in a word editor and copy the certificate text.
      10. Now, open the cert.pem file from the Resources folder of your application and paste the certificate text and save the file.

Configure SAML settings in Zoho Developer Console

Once you've configured the SAML settings in your application, copy the Service Provider's Entity ID and ACS URL from the Saml_config.ini file and paste it in Zoho Developer Console.

To configure SP settings in Zoho Developer Console
1. On the Connected Apps page, click Configure SAML.
2. Provide the Entity ID, ACS URL, and Start URL obtained from your application.



3. Select a Subject type and Name ID format from the drop-down list.
4. Click Save and then click OK.
​Now you can configure a launcher for your Connected App. It can either be a web tab or a link in the launcher.

Give a Start URL for the launch link and a logo, if you want to make your Connected App appear in the launcher.


    Access your files securely from anywhere

      Zoho CRM Training Programs

      Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

      Zoho CRM Training
        Redefine the way you work
        with Zoho Workplace

          Zoho DataPrep Personalized Demo

          If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

          Zoho CRM Training

            Create, share, and deliver

            beautiful slides from anywhere.

            Get Started Now


              Zoho Sign now offers specialized one-on-one training for both administrators and developers.

              BOOK A SESSION









                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                Manage your brands on social media

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

                                                      Zoho Sheet Resources

                                                       

                                                          Zoho Forms Resources


                                                            Secure your business
                                                            communication with Zoho Mail


                                                            Mail on the move with
                                                            Zoho Mail mobile application

                                                              Stay on top of your schedule
                                                              at all times


                                                              Carry your calendar with you
                                                              Anytime, anywhere




                                                                    Zoho Sign Resources

                                                                      Sign, Paperless!

                                                                      Sign and send business documents on the go!

                                                                      Get Started Now




                                                                              Zoho TeamInbox Resources



                                                                                      Zoho DataPrep Resources



                                                                                        Zoho DataPrep Demo

                                                                                        Get a personalized demo or POC

                                                                                        REGISTER NOW


                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now









                                                                                                              • Related Articles

                                                                                                              • Building a Client Side Application

                                                                                                                This guide will help you with the following: Create a Connected App Internal Hosting  External Hosting  Create the "Helloworld" Widget  Setup the files structure for "HelloWorld" Widget  Register the Event Listeners  This guide will furnish you with ...
                                                                                                              • Building a Real Estate CRM

                                                                                                                Zoho Developer Console allows developers to transform your CRM into an industry specific CRM solution. A real estate CRM needs to manage comprehensive and comparative details about properties, offer ease in handling Buyer and Client data and provide ...
                                                                                                              • Building a Twilio Extension

                                                                                                                Twilio is a cloud communication platform that allows developers to integrate their application programmatically to make and receive voice calls and text messages using its Web service API. The following core topics will assist developers in ...
                                                                                                              • Building a Google Drive - Related List Widget

                                                                                                                Embedding a Google Drive widget inside Zoho CRM as a Related list allows a user to accomplish three tasks, Fetch files from Google Drive and show them as a related list in the record's detail page in CRM. Upload any document from Zoho CRM to a Google ...
                                                                                                              • Building a Ring Central Telephony Widget

                                                                                                                A RingCentral widget embedded inside Zoho CRM allows users to perform various activities. A CRM user can: Load the telephony dial pad as an iframe in the Zoho CRM interface by using the telephone icon at the bottom right corner of the screen. Make a ...
                                                                                                                Wherever you are is as good as
                                                                                                                your workplace

                                                                                                                  Resources

                                                                                                                  Videos

                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                  eBooks

                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                  Webinars

                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                  CRM Tips

                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                    Zoho Show Resources