How can we authenticate someone and then redirect them to another url ?

How can we authenticate someone and then redirect them to another url ?

An example: 
https://portal.example-cloud.com/index.jsp?redirectTo=http://www.google.com 

Will authenticate you to webNetwork and then redirect your browser over to google.com 

This is handled in the /stoneware/webserv/index.jsp page. If you are not using the stock stoneware login pages, then you can add something like the following to your custom page. 

The following code in the index.jsp handles the redirect. 

String redirectTo = request.getParameter( "redirectTo" ); 
if ( redirectTo != null ) { 
session.setAttribute( StonewareConstants.ATTEMPT_TO_VISIT, redirectTo ); 



This url method can also be used to make a desktop icon in windows and have it launch an application. For example have the shortcut point to : 

https://portal.example-cloud.com/index.jsp?redirectTo=https://portal.example-cloud.com/StartWebApplication/cn=Bugzilla-webapp,ou=stoneware,dc=example-cloud,dc=com