Jump to content

TRonin81

Retired Forum Member
  • Posts

    2
  • Joined

  • Last visited

Everything posted by TRonin81

  1. So, my solution as of now is to create my own pseduo userinfo php file in my whmcs directory. The first thing I need to do is to reveal the authorization header via .htaccess CGIPassAuth on And then create oauth-intermediary.php file that takes the Bearer userinfo request and does a POST request with access_token query string <?php //OLD USERINFO https://www.yoursite.com/oauth/userinfo.php //NEW USERINFO https://www.yoursite.com/oauth-intermediary.php header('Content-Type: application/json'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://www.yoursite.com/oauth/userinfo.php?access_token=".str_replace("Bearer ","",getallheaders()["Authorization"])); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); echo $server_output; curl_close ($ch);
  2. I am currently facing something similar when trying to integrate SSO. I am testing in POSTMAN and if I set the authorization token in the header via Bearer it does not work. However, if I set a query param access_token= with the token it works as expected.
×
×
  • 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