I made an http post request by attaching username and password in the body to be able to access directly to a portal. The problem is that I am redirected back to the login page