Skip to main content

Auto login to 3rd party software from custom cPanel plugin?

Comments

6 comments

  • cPanelMichael
    Hello @abhishekkuamr, We support the use of a few external authentication methods to access cPanel & WHM services, but we don't support using cPanel login credentials for third-party services. For instance, you could allow your server's users to log in to WHM, cPanel, and Webmail with a Google account using the instructions at:
    0
  • abhishekkuamr
    Is there any documentation around the flow of the APIs, where is the server, which code layer handles the auth, who manages the issued cp_security_tokens, who invokes the Perl Modules, etc? This will help me to check if there is any possibility to write any custom perl module which does what I need.
    0
  • cPanelMichael
    Hello @abhishekkuamr, All our of API authentication documentation is available at: Guide to API Authentication - Developer Documentation - cPanel Documentation Let us know if you have specific questions about any of these documents. Thank you.
    0
  • abhishekkuamr
    These API documentations I already went through. What I was looking looking for is internal documentation around the codes. How the code is organized, mostly the backend code, i.e. which code layer handles the auth, who manages the issued cp_security_tokens, who invokes the Perl Modules, etc? For eg: /usr/local/cpanel/Cpanel/* contains all the perl modules which has cpanel modules/functions defined. /usr/local/cpanel/base/frontend/* has the frontend files. But I need to know where is the backend code, the auth layer, the security token handler, how the complete code in organized in cpanel, which folder does what, etc?
    0
  • cPanelMichael
    Hello @abhishekkuamr, There's no documentation available for the information you are seeking. cPanel & WHM isn't open source, so not all of the files included as part of the installation are viewable. That said, if you can provide more information about the specific task you'd like to complete, I can try to guide you towards the best way to accomplish it. Thank you.
    0
  • Agarwal
    I have plugin written in PHP that allows me to login into my product via CPanel, as this plugin uses $_ENV['REMOTE_USER'> and $_ENV['REMOTE_PASSWORD'>. But if CPanel user logs in via WHM (which creates a session allows panel user to login) I don't receive values for $_ENV['REMOTE_USER'> and $_ENV['REMOTE_PASSWORD'> and hence login attempt fails. I want to implement a single sign on, is there a way to get mentioned variables values from session?
    0

Please sign in to leave a comment.