Not redirecting after login

Daniel Serodio daniel.listas at xxx.com.br
Thu Jun 1 16:01:11 EDT 2006


Scott,

Thank you very much for the prompt reply. I removed the
``action="login"´´ part, and it seems to be working.

Regards,
Daniel Serodio

Scott Battaglia wrote:
> Daniel,
>
> You can't do this:
>
> <form method="post" action="login">
>
> By doing this you remove all the request parameters.  Take a look at the login view in CVS to see what that does.
>
> -Scott
>
>
> Daniel Serodio wrote:
>   
>> I'm trying to CASify our first application, in PHP5, but the CAS server
>> does not redirect after successful login, it stays in the " You have
>> successfully logged into the Central Authentication Service" page
>> I saw an earlier post from Travis about it in this list, and Scott
>> replied asking if the JSP login page had been modified. I have modified
>> it, so here it goes:
>>
>> <%@ page session="false" %>
>> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
>> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
>>     <head>
>>         <title>Central de Autenticação Segura</title>
>>         <meta http-equiv="Content-Type" content="text/html;
>> charset=utf-8" />
>>     </head>
>>   <body>
>>     <img src="images/header.jpg" />
>>     <h1>Central de Autenticação Segura</h1>
>>     Digite seu nome de usuário e senha. Se seu endereço de e-mail
>> é<strong>usuario at seu.dominio</strong>, seu nome de usuário
>>     será<strong>usuario</strong>
>>     <form method="post" action="login">
>>
>>     <!-- Begin error message generating Server-Side tags -->
>>     <spring:hasBindErrors name="credentials">
>>       <c:forEach var="error" items="${errors.allErrors}">
>>           <br /><spring:message code="${error.code}" />
>>       </c:forEach>
>>     </spring:hasBindErrors>
>>     <!-- End error message generating Server-Side tags -->
>>
>>     <p>Usuário
>>         <input id="username" name="username" size="32" tabindex="1"
>> accesskey="u" />
>>     </p>
>>
>>     <p>Senha
>>         <input type="password" id="password" name="password" size="32"
>> tabindex="2" accesskey="s" />
>>     </p>
>>
>>     <p><input type="checkbox" id="warn" name="warn" value="false"
>> tabindex="3" />
>>        Avise-me antes de autenticar em outros sites
>>
>>     <!-- The following hidden field must be part of the submitted Form -->
>>     <input type="hidden" name="lt" value="${flowExecutionId}" />
>>     <input type="hidden" name="_currentStateId" value="${currentStateId}" />
>>     <input type="hidden" name="_eventId" value="submit" />
>>
>>     </p>
>>
>>     <p>
>>     <input type="submit" class="button" accesskey="e" value="Entrar"
>> tabindex="4" />
>>     </p>
>>     </form>
>> </body>
>> </html>
>>
>> ---8<--------------------------------------------------------------------------
>>
>> The CAS log shows:
>>
>> 2006-06-01 14:16:44,186 INFO
>> [org.jasig.cas.authentication.AuthenticationManagerImpl] -
>> AuthenticationHandler: custom.cas.handlers.Pop3AuthHandler successfully
>> authenticated the user.
>> 2006-06-01 14:16:44,186 DEBUG
>> [org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver]
>> - Creating SimplePrincipal for [msousa]
>> 2006-06-01 14:16:44,186 DEBUG
>> [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Added ticket
>> [TGT-3-EunUsa4oaLtwsWjMLuWfO7UQwrL0dKbyEUyVhZfzrwDX3lWDIl] to registry.
>> 2006-06-01 14:16:44,186 DEBUG [org.jasig.cas.web.flow.LoginFormAction] -
>> Action 'org.jasig.cas.web.flow.LoginFormAction' completed execution; 
>> result event is [Event at 18a3c3b source =
>> org.jasig.cas.web.flow.LoginFormAction at 12c01f2, id = 'noService',
>> stateId = [null], parameters = [null]]
>> 2006-06-01 14:16:59,344 DEBUG
>> [org.jasig.cas.web.flow.TicketGrantingTicketCheckAction] - Action
>> 'org.jasig.cas.web.flow.TicketGrantingTicketCheckAction' beginning execution
>> 2006-06-01 14:16:59,352 DEBUG
>> [org.jasig.cas.web.flow.TicketGrantingTicketCheckAction] - Action
>> 'org.jasig.cas.web.flow.TicketGrantingTicketCheckAction' completed
>> execution; result event is [Event at 18a796e source =
>> org.jasig.cas.web.flow.TicketGrantingTicketCheckAction at 12bf98f, id =
>> 'error', stateId = [null], parameters = [null]]
>>     


More information about the cas mailing list