How i can to redirect to Bonita Portal using API REST?

1
+1
-1

Hi ,

I would like to login into bonita portal through api rest .Now i can login in order to retrieve something , but when i specify the redirect parameter at 'true' , it doesn't work.

this is the array that i send to API using POST method(using php):

$data = array('username' =>'walter.bates', 'password' => 'bpm', 'redirect' => 'true');
curl_setopt($conexio, CURLOPT_URL, 'http://localhost:8080/bonita/loginservice');

Regards.

2 answers

1
0
-1

Thanks for your reply,

sorry , when i have copied the script , i forgot this part, but also it doesn't work

regards

1
0
-1

Hi,

Your array is missing a redirectUrl parameter. It should look like this :

$data = array('username' =>'walter.bates', 'password' => 'bpm', 'redirect' => 'true', 'redirectUrl' => 'http://redirect.example.com');

Comments

Submitted by claz08 on Wed, 11/25/2015 - 21:28

not work!!

Notifications