When a User attempts to login from URL x/y/z within the application, Agorava will send a URL to the auth service with a application scoped callback URL.
It would be useful define a dynamic callback URL; e.g. return the User to where he attempted to login from (referer)
Possible API could be:
service.getAuthorizationUrl(URL callbackURL)
That would allow you to programmatically pr AUth Request setup the callback:
response.sendRedirect(
service.getAuthorizationUrl(
request.getHeader("referer")
)
);
|