Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
SSOLogin using PHPToolkit
Hi,
I am trying to implement SSOLogin function using phptoolkit.
I am not sure how to generate authkeys using PHP ? I think i would get a URL as a result . the code is given below :
ini_set("display_errors","1");
require_once "phptoolkit/PHPtoolkit.php";
$email = "";
$password = "";
$account = "";
$role = "3";
$myNSclient = new nsClient();
$timestamp = mktime(date("h"),date("i"),date("s"),date("m"),date("d"),date("y"));
$authKey = "1314072 demo1111@gmail.com ".$timestamp;
$result = $myNSclient->ssoLogin($account, $authKey);
if($result->isSuccess){
pr($result);
}else{
print "Fail";
}
Please help me , if anybody has done SSOLogin implementation before, using PHPToolkit.
Thanks in advance,