# ¿how can i acces to bonita portal automatically using API REST?

**URL:** https://community.ofelia.com/t/how-can-i-acces-to-bonita-portal-automatically-using-api-rest/6710
**Category:** Q&A
**Created:** [25 November 2015 20:43 UTC](https://community.ofelia.com/t/how-can-i-acces-to-bonita-portal-automatically-using-api-rest/6710 "2015-11-25T20:43:03Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![claz08](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@claz08](https://community.ofelia.com/u/claz08)
#### Post date: [25 November 2015 20:43 UTC](https://community.ofelia.com/t/how-can-i-acces-to-bonita-portal-automatically-using-api-rest/6710/1 "2015-11-25T20:43:03Z")

</div>

hI,

I would like to acces to bonita portal without having to put my username and password manually. I wolul like to access to bonita portal automatically using API REST.

`$data = array('username' =>$user, 'password' => $password, 'redirect' => 'true' ,'redirectURL' => 'https://localhost:8080/bonita/portal/homepage');`

this code , redirected me to Bonita portal login system,How i can put the username and password variable in the url in order to login with this user.

Regards

---

<div class="post-metadata">

### Author: ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)
#### Post date: [26 November 2015 02:24 UTC](https://community.ofelia.com/t/how-can-i-acces-to-bonita-portal-automatically-using-api-rest/6710/2 "2015-11-26T02:24:56Z")

</div>

You have to use the login service for rest, not the login screen.

see here:

[http://documentation.bonitasoft.com/rest-api-overview-0](http://documentation.bonitasoft.com/rest-api-overview-0)

regards  
Seán

---

<div class="post-metadata">

### Author: ![claz08](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@claz08](https://community.ofelia.com/u/claz08)
#### Post date: [26 November 2015 12:52 UTC](https://community.ofelia.com/t/how-can-i-acces-to-bonita-portal-automatically-using-api-rest/6710/3 "2015-11-26T12:52:25Z")

</div>

Thanks for reply.

could you specify me ,how i can do it, because i use the authenticate loginservice in order to retrieve some information from my process and so on. One of this information that i retrieve is the tasks that the user has, and when i list this tasks and i want to access to the task form , always redirected me to bonita portal system login in order to put my username and password and one time i have put this information it redirected to the task form. What i need is when the user click in the link of task form, the system redirected me to this task form automatically.

I hope that you help me!

---

<div class="post-metadata">

### Author: ![claz08](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@claz08](https://community.ofelia.com/u/claz08)
#### Post date: [26 November 2015 12:52 UTC](https://community.ofelia.com/t/how-can-i-acces-to-bonita-portal-automatically-using-api-rest/6710/4 "2015-11-26T12:52:42Z")

</div>

Thanks for reply.

could you specify me ,how i can do it, because i use the authenticate loginservice in order to retrieve some information from my process and so on. One of this information that i retrieve is the tasks that the user has, and when i list this tasks and i want to access to the task form , always redirected me to bonita portal system login in order to put my username and password and one time i have put this information it redirected to the task form. What i need is when the user click in the link of task form, the system redirected me to this task form automatically.

I hope that you help me!

---

<div class="post-metadata">

### Author: ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)
#### Post date: [26 November 2015 14:07 UTC](https://community.ofelia.com/t/how-can-i-acces-to-bonita-portal-automatically-using-api-rest/6710/5 "2015-11-26T14:07:10Z")

</div>

try

[http://localhost:8080/bonita/portal/homepage#?\_pf=1&\_p=tasklistinguser](http://localhost:8080/bonita/portal/homepage#?_pf=1&_p=tasklistinguser)

regards

---

<div class="post-metadata">

### Author: ![claz08](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@claz08](https://community.ofelia.com/u/claz08)
#### Post date: [30 November 2015 16:26 UTC](https://community.ofelia.com/t/how-can-i-acces-to-bonita-portal-automatically-using-api-rest/6710/6 "2015-11-30T16:26:39Z")

</div>

this link , redirect me to the bonita portal login system, and this is what i want to avoid.
