Jump to content

Achhar Singh

Member
  • Posts

    4
  • Joined

  • Last visited

About Achhar Singh

Achhar Singh's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hi, You can try using the "CreateSsoToken" api instead of hard coding for all these params. https://developers.whmcs.com/api-reference/createssotoken/ Thanks,
  2. Hello, $command = 'CreateSsoToken'; $postData = array( 'client_id' => '8', 'destination' => "sso:custom_redirect", 'sso_redirect_path' => "clientarea.php?action=invoices" ); $results = localAPI($command, $postData); Relative path should be given in 'sso_redirect_path' when using 'destination' => "sso:custom_redirect", instead of full or any formatted path. Thanks
  3. Hi, http_build_query( array( 'action' => 'CreateOAuthCredential', 'username' => 'username', 'password' => 'password', 'grantType' => 'single_sign_on', 'scope' => 'clientarea:sso clientarea:billing_info clientarea:announcements', 'serviceId' => '43', 'description' => 'All', 'responsetype' => 'json', 'redirectUri' => 'url' ) ) use grantType instead of granttype. ServiceId is required for single_sign_on grantType. I got successfully clientIdentifier and clientSecret but after that where to find the Single Sign-On API Endpoint - has no clue. I you still stuck at point 2, I can share the script. Thanks
  4. Welcome to WHMCS.Community Achhar Singh! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

×
×
  • 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