Jump to content

Question on using AutoAuth with Curl


SindreM

Recommended Posts

We are currently registering and authenticating users outside our WHMCS install, and wants to use the AutoAuth feature to automatically log in the user to WHMCS. I have been able to successfully generate the autoauth url with the hash etc. and it works if I paste the url in a browser. However, instead we want to do this server-side with Curl and just redirect the user to WHMCS with Javascript. The curl request returns successfully (200), however, when navigating to the client area the user is not logged in.

 

What is the best way to do this? Do I need to redirect the user to the autologin url with either Javascript or PHP header('Location: ...') to make the session stick?

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