How to open an external URL in a modal from AngularJS app -


i want use oauth in angularjs application, , need take user twitter oauth page can grant access. inside application, i'd prefer not redirect user out of context of angular app (i.e. don't reload page) , want open authorization page in pop-up or modal window. user completes workflow in window , when close modal, access token stored in app, or in cookie.

i struggling figure out how open pop-up , populate twitter grant authorization page.

> here example: http://plnkr.co/edit/nemaj32daepmopwaffkw?p=info 

if external website open in modal think might part-way there?

i don't believe that's possible. if embed twitter auth page inside modal's iframe, oauth flow ways force redirect. knowing redirect applied entire page (e.g. browser window/tab) , not iframe, end redirecting entire page.

and there's phishing risk

your option open new browser tab/window(popup).

more information twitter's oauth flows here , here.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -