Handle HTML response from REST API

Hi.

I'm using a Microsoft authentication API which is returning a HTML page as a response. How do I open this in a new tab?

Thanks!

Hi,


why should it open in a new tab?

and should it not redirect to that page itself?

(you will do a server-redirect to the m$ authentication, that will do some stuff and will redirect the user back to your site at a specific page where you handle the rest of the authemntication)


anyways, to answer your question directly, best bet is to strip the html somewhat and place it inside an expression on you page... so it can be nicely included on your page.

otherwise you should do soemthing with iframe or something similar., but that has its downsides.


J. wrote:

Hi,


why should it open in a new tab?

and should it not redirect to that page itself?

(you will do a server-redirect to the m$ authentication, that will do some stuff and will redirect the user back to your site at a specific page where you handle the rest of the authemntication)


anyways, to answer your question directly, best bet is to strip the html somewhat and place it inside an expression on you page... so it can be nicely included on your page.

otherwise you should do soemthing with iframe or something similar., but that has its downsides.


Page redirection is not happening automatically for some reason. It refreshes and opens the same page.


Saurav Sircar,

Did you get any solution of this?

I got a same issue.

Jongmin Choi wrote:

Saurav Sircar,

Did you get any solution of this?

I got a same issue.


Hi Saurav sircar,


1) create new page inside and create the expression and set your html string, 

2) after use external url under set Property target=_blank will open to new page and set url of new page.


hope this helps

thanks,

Balasubramanian