I'm building an oauth popup window like google, fb, github etc. I'm able to do the login, but not able to close the window popup once the login is successful.
Example:
1. I open the oauth popup from my website : www.abc.com
2. The URL in the OAuth popup is www.random.com
3. I complete the login process inside the popup: www.random.com. And then It should close the popup and return back the current url or response
Currently, It just redirects back to www.abc.com within the popup itself. Which is of no use.
Does anyone have experience in this? The resources seems to be almost close to none for this.
Maybe its a company secret they don't want to reveal?