[CAS 7.2.7] Losing service param in url after authentication failure on bad password

16 views
Skip to first unread message

gautham jampala

unread,
Jul 28, 2026, 3:36:56 PMJul 28
to CAS Community
Hello,

I see that the service param is lost from the login page after Authentication failure  when user enters bad password. If user enters the correct password after this they are redirected to cas basic logged in page.

I did manage to fix it by adding below in our custom loginform.html fragment:

<input type="hidden" name="service" th:value="${param.service != null ? param.service[0] : ''}" />

This solution fixed the redirect to the correct service after login but the service param is still removed from url.

Wanted to understand if this is the best solution or if I am missing some logic which is removing service param.

Thank you,
Gautham
Reply all
Reply to author
Forward
0 new messages