Jon Erickson Posted May 1, 2020 Share Posted May 1, 2020 I have implemented the CreateSsoToken API with my custom OIDC addon for SSO. It works as expected when using a pre-defined destination. However, when using the sso:custom_redirect destination, my client is not redirected to the checkout page as it is defined below. $results = localAPI( 'CreateSsoToken', array( 'client_id' => $client->id, 'destination' => 'sso:custom_redirect', 'sso_redirect_path' => 'cart.php?a=checkout' ), 'Jon Erickson' ); 0 Quote Link to comment Share on other sites More sharing options...
gofas Posted October 5, 2020 Share Posted October 5, 2020 Apparently the error is in the format of the WHMCS administrator's username. WHMCS admin is optional for WHMCS 7.2 and later, you do not need to inform the admin, you can use only the boolean false, example: $results = localAPI( 'CreateSsoToken', array( 'client_id' => $client->id, 'destination' => 'sso:custom_redirect', 'sso_redirect_path' => 'cart.php?a=checkout' ), false ); 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.