telvenes Posted January 17, 2020 Share Posted January 17, 2020 Hi, Can anyone provide a sample for singlesignon? 0 Quote Link to comment Share on other sites More sharing options...
cdeese8 Posted January 23, 2020 Share Posted January 23, 2020 Perhaps doing a sitewide search for keywords can help. So a search query like "site:whmcs.community SSO OR single sign on example hook" might do the trick on DDG or Google. https://www.google.com/search?q=site%3Awhmcs.community+SSO+OR+single+sign+on+example+hook&oq=site%3Awhmcs.community+SSO+OR+single+sign+on+example+hook 0 Quote Link to comment Share on other sites More sharing options...
telvenes Posted January 24, 2020 Author Share Posted January 24, 2020 I have a good look at everything I have found in your search. and can't find anything here either. so ask again. does anyone have an example? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Staff WHMCS Peter Posted January 24, 2020 WHMCS Staff Share Posted January 24, 2020 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/ 0 Quote Link to comment Share on other sites More sharing options...
telvenes Posted January 25, 2020 Author Share Posted January 25, 2020 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. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Staff WHMCS Peter Posted January 25, 2020 WHMCS Staff Share Posted January 25, 2020 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. 0 Quote Link to comment Share on other sites More sharing options...
telvenes Posted January 27, 2020 Author Share Posted January 27, 2020 Yes i know. but do any one have a code sample for this? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.