I have included Satellizer in my application with various social network providers (Facebook, Twitter, Google). My stack consists of: AngularJS (UI Router) and NodeJS / Express.
I seem to be facing the problem of setting up dynamic callback URLs for user authentication. My application doesnโt have a consistent login URL, for example http://example.com/login , because all my URLs are dynamic and token based, for example: http://example.com/XH12aT1771 . In fact, my user interface is a modal overlay, and there is no permanent login page.
The problem with my system in integrating with OAuth is to register the user in my application using modal overlay, I want to return them to the desired room (or token) in which they are located, and not redirect them to any callback URL page. since it will be a bad user interface.
Is the only way to make the OAuth callback url code hard-coded, for example: http://example.com/success , and then redirect the user back to their token after they get to the /success page? Is this really the only way to do this?
Let me know if you need further questions, thanks for the help.
source share