tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/164-custom-authenticationCascade CMS: Discussion 2014-03-25T20:55:54Ztag:help-archives.hannonhill.com,2010-02-09:Comment/30676942010-09-22T20:44:12Z2010-09-22T20:44:12ZCustom Authentication<div><p>Hi Joel,</p>
<p>You'll want to use the sendRedirect(String url) method on the response object, that is passed as a parameter to redirect(), to do the actual redirect.</p>
<p>So your code would look something like this:</p>
<pre><code>public boolean redirect(HttpServletRequest request, HttpServletResponse response, AuthenticationPhase phase) throws IOException
{
if (phase == AuthenticationPhase.LOGIN)
{
response.sendRedirect("http://mycustomauthapp.com/login");
return true;
}
}</code></pre></div>Mike