Search the Community
Showing results for tags 'oauth'.
-
I'm trying to integrate a small app to use WHMCS's OpenId login, but it doesn't seem to work. The php code that I'm using works with existing OpenID providers, Google, Yahoo, Wordpress, StackExchange, and I am trying to use it with WHMCS. However, when I send the authentication request, all I get is a blank page. No redirects, no messages, no data. My request URI: https://www.mybusiness.com/whmcs/oauth/authorize.php? response_type=code& redirect_uri=https%3A%2F%2Fwww.myapp.net%2Fopenid%2Fclient_login.php& client_id=MY-BUSINESS.wJn%2Bp3Fjs9WU8ytfUVJ2eQ%3D%3D& nonce=00241f1dc68d5b0f1b3ab511778cd781& state=security_token%3Df40b21a2f93e4239ac11dea1987cc307%26url%3Dhttps%3A%2F%2Fwww.myapp.net%2Fopenid%2Fclient_login.php& scope=openid%20profile%20email I have SSL set up and working, WHMCS keys set up (if I provide a wrong key or id it does show an error), with correct redirect (if I set wrong redirect url, it shows an error) But, with everything set up correctly, I get no response. Is there something that I am missing? I found the WHMCS documentation surprisingly lacking in any real information or help. http://docs.whmcs.com/OpenID_Connect http://docs.whmcs.com/OpenID_Connect_Developer_Guide Has anyone else successfully got OpenID working with their WHMCS? After a lot of Google searching, I'm yet to find a single example, or any mention of anyone having used WHMCS OpenId at all. I know it's a new feature, but it seems like it would be really useful, to have an app using the login system of WHMCS instead of rolling my own for every single app. Does no one use this? Should I not be using it? Should I run my own OpenID provider server?
-
I am facing an issue with the OpenIDConnect. I am using WordPress as the OIDC client using this plugin. I am sending the Authorization request, it prompts me for the login. I was able to login with my credentials, but I'm facing some issue. After login in WHMCS, it seems to redirect to authorize endpoint again. That time, it's not picking the domain name of WHMCS, it's just redirecting to authorize endpoint's path. ie. https://oauth/authorize.php instead of https://whmcs.ppa.group/oauth/authorize.php. The support team suggested that I check the Authorization URL. The authorization URL is - https://whmcs.ppa.group/oauth/authorize.php?client_id=PPA-GROUP.j0uYaMB7%2FnNzc0KCxtAhDA%3D%3D&scope=openid%20profile%20email&redirect_uri=https://ppa.group&response_type=code&state=T0F1dGg= Any help regarding this would be greatly appreciated.
- 1 reply
-
- openid
- openidconnect
-
(and 3 more)
Tagged with:
-
I'm attempting to utilise single sign on in WHMCS, but get a PDO error "Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null' in /whmcs/vendor/illuminate/database/Connection.php:444". I have the correct request parameters as described here: http://docs.whmcs.com/API:CreateOAuthCredential. The params I'm using are: username:xxxxxxxx password:xxxxxxxxx action:CreateOAuthCredential grantType:single_sign_on scope:clientarea:sso clientarea:profile description:Test SSO serviceId:<USER ID HERE> responsetype:json I put some logging in Connection.php and it appears WHMCS is attempting to insert into `tbloauthserver_clients`, but there is no user_id. How do I pass user_id as a parameter? What am I doing wrong?
-
- oauth
- single sign on
-
(and 2 more)
Tagged with: