spalx Posted October 22, 2018 Share Posted October 22, 2018 Hi guys, I've been trying to generate a single signon request in whmcs using Oauth2, hence as i am new to this, i have been hitting a new brick wall with every request. I contacted support and they adviced me to use oauth/singlesignon.php which doesnt even exist in the docs and i have no idea what to send to that file. The standard client_id, request_type, scope, etc. request doesnt work or at least i get nothing in return. I have created a user/secret combo with a CreateOAuthCredential API call, and here is what i've been sending so far: https://www.mydomain.com/oauth/singlesignon.php?client_id=IDHERE&response_type=code&scope=clientarea:profile&redirect_uri=RETURNURI&state=2j1d98183eh72w8h1e This returns an empty json response. If i send the request towards oauth/authorize.php i get "The grant type is unauthorized for this client_id". Can you please give me a hint at what i'm doing wrong or at least point me in the right direction ? Thank you. 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.