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.
your option open new browser tab/window(popup).
Comments
Post a Comment