Zac,

Based on the default casLoginView in 3.5.2, the form will send 'username', 
'password', 'warn', 'lt' (login ticket), 'execution', and '_eventId'. The 
behavior that you see usually happens when the login ticket in the POST 
request is invalid or missing.

This is what the form looks like stripped of DIVs and stand-alone 
<spring:message> tags, and without the OpenID conditional code:

<form:form method="post" id="fm1" cssClass="fm-v clearfix" 
commandName="${commandName}" htmlEscape="true">
    <label for="username" class="fl-label"><spring:message 
code="screen.welcome.label.netid" /></label>
    <form:input cssClass="required" cssErrorClass="error" id="username" 
size="25" tabindex="1" accesskey="${userNameAccessKey}" path="username" 
autocomplete="false" htmlEscape="true" />
    <label for="password" class="fl-label"><spring:message 
code="screen.welcome.label.password" /></label>
    <form:password cssClass="required" cssErrorClass="error" id="password" 
size="25" tabindex="2" path="password"  accesskey="${passwordAccessKey}" 
htmlEscape="true" autocomplete="off" />
    <input id="warn" name="warn" value="true" tabindex="3" 
accesskey="<spring:message code="screen.welcome.label.warn.accesskey" />" 
type="checkbox" />
    <label for="warn"><spring:message code="screen.welcome.label.warn" 
/></label>
    <input type="hidden" name="lt" value="${loginTicket}" />
    <input type="hidden" name="execution" value="${flowExecutionKey}" />
    <input type="hidden" name="_eventId" value="submit" />
    <input class="btn-submit" name="submit" accesskey="l" 
value="<spring:message code="screen.welcome.button.login" />" tabindex="4" 
type="submit" />
    <input class="btn-reset" name="reset" accesskey="c" 
value="<spring:message code="screen.welcome.button.clear" />" tabindex="5" 
type="reset" />
</form:form>

Best regards,
--
Carlos.

-----Original Message-----
From: Zac [mailto:[email protected]]
Sent: Wednesday, 14 May, 2014 13:41
To: [email protected]
Subject: [cas-user] Minimal code for custom casLoginView.jsp form?

I just tried to implement my own casLoginView.jsp form and have CAS 
displaying it beautifully when the user goes to log in to the system. The 
problem is that when you click the login button, the screen just refreshes 
and gives no indication as to whether they successfully logged in or not.

So I ask: what is the minimal <form> code necessary to POST a username and 
password to CAS (from inside the casLoginView.jsp)? What attributes does it 
need?
--
You are currently subscribed to [email protected] as: 
[email protected] To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to