Jump to content

Implementing SSO on WHMCS using Auth0 as IDP and facing an issue with Auth0 PHP SDK


Recommended Posts

Hello WHMCS community,

I'm currently working on implementing single sign-on (SSO) for a WHMCS application using Auth0 as the Identity Provider (IDP). So, I could use some guidance in properly setting this up.

Additionally, when I attempted to install the Auth0 PHP SDK on the WHMCS root directory using composer (composer require auth0/auth0-php), the application crashed, and I received the following error:

[Wed Jun 12 19:39:30.707018 2024] [php:error] [pid 1358623] [client 192.168.80.237:56137] PHP Fatal error: Uncaught Error: Class "WHMCS\\Utility\\ErrorManagement" not found in /var/www/html/whmcs/init.php:0 Stack trace: #0 /var/www/html/whmcs/index.php(0): unknown() #1 {main} thrown in /var/www/html/whmcs/init.php on line 0
 

I'm not sure what's causing this issue or how to resolve it. Has anyone here had a similar experience or could help work through this problem?

Many thanks in advance for your assistance and I'm looking forward to hearing your insights.

Best regards,

Reddy

Link to comment
Share on other sites

Hello,

You are not supposed to run composer install from the whmcs root directory. That could make conflict with the packages shipped along with whmcs, there is a vendor folder already coming with whmcs. So it's not a good practise to run composer install from the root folder. 

You could create an addon module and install the library in that, then call it from where you need it

Link to comment
Share on other sites

@WhmcsTools Thanks for your suggestion. I will check by creating an addon.

Can you please let me know how to implement SSO for WHMCS application using Auth0 as the Identity Provider (IDP)
any code samples would be really helpful.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated