I have incorporated Satellizer into my app with a variety of social login providers (Facebook, Twitter, Google). My stack consists of: AngularJS (UI Router) and NodeJS/Express.
I seem to be encountering a challenge setting up dynamic callback URLs for user authentication. My app does not have a consistent login URL such as http://example.com/login
because all of my URLs are dynamic and token based, for example: http://example.com/XH12aT1771
. In effect, my login user experience is a modal overlay and there isn't any consistent login page.
The challenge with my system in integrating with OAuth is after logging the user into my app via the modal overlay, I want to put them back in the exact room (or token) they're in, not redirect them to some callback URL page as this would be a poor user experience.
Is the only way to make my OAuth callback url hardcoded, something like: http://example.com/success
and then redirect the user back to their token after they hit the /success
page? Is this really the only way to do such a thing?
Let me know if you need any more question details, thanks for the help.