Handle HTML response from REST API

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.