Hello!
As the next step on the user authentication work I'm doing with AppScale, I need to have 2 things happen.
2. Further, I want the "continue" URL passed on to AppDashboard by GAE's UserService.createLoginURL() and UserService.createLogoutURL() to NOT be the applications's IP, but the application's URL instead.
I have partially succeeded in doing that by passing req.getServerName() as param to createLoginURL()/createLogoutURL(), where "req" is the app's HttpServletRequest class.
In that case, the "continue?" part of the login URL indeed becomes the server name (e.g.
gae_clock.edgescale.net) BUT for the logout URL, it is still the app's IP. I am not sure why.
I know that's a lot of info but basically my question is if you have any insights on how to go about making changes such that AppScale behaves the way I want as described above. For example, what changes should I make to the nginx configs (in AppController/lib/nginx.rb) such that instead of having a permanent redirect to AppDashboard, the login request is simply proxied to AppDashboard and the client-side URL is not changed? I tried changing configs to "proxy_pass" instead for example, or having a temporary redirect instead, but that failed.