Jump to content

singlesignon


telvenes

Recommended Posts

12 hours ago, WHMCS Peter said:

Hi!

We have an example available in our GitHub - https://www.github.com/WHMCS

We also have an example available here: https://developers.whmcs.com/provisioning-modules/single-sign-on/

279/5000
 
 
 
I have read this documentation many times. but there are no examples here.
Example here is how to call the function to also do single sign on.

I manage and log on to the server with eg curl but then again it is only on the server side. not for the client.
Link to comment
Share on other sites

  • WHMCS Staff

Hi,

The purpose of the single sign on function is to effectively generate a one-time use URL which will allow a user to log in without further authentication.

For example, your function would return https://service.yourdomain.com/sso?user=SOME_USERNAME&accesstoken=A_RANDOM_GENERATED_HASH

WHMCS will redirect the user to your service using this URL. Your service would then analyze the URL and perform a login based on the information in the URL without asking for a username and password and then invalid that URL from further use.

Unfortunately, we can't provide assistance with generating a single sign-on URL for your custom service. This will likely involve knowledge of your custom service and also, new functionality to generate single sign-on URLs if this is not already present.

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