Hi friends,
I've been working with WHMCS support on an issue I'm facing with API calls to UsersInfo but their team unfortunately isn't able to help. I'm posting here hoping that someone can either reproduce the issue or has faced it and knows a resolution. While using a PHP library (and Postman as well to simulate the calls) to connect via OpenID to WHMCS, I have no issues obtaining the JWT and Access_Token returned from the flow, but making a subsequent call to the UsersInfo endpoint with the access_token returned in the same payload as the JWT as the bearer, I get a 401 Unauthorized in both PHP and Postman. This Endpoint seems to not work as I expect it to, which is based on OpenID and OAuth 2.0 Standards.
Here is the library: https://github.com/jumbojett/OpenID-Connect-PHP
Has anyone else faced this issue and/or know how to resolve it?
Brandin.