Admin login help (cas/admin)

45 views
Skip to first unread message

Tibin Abraham

unread,
Oct 16, 2020, 4:55:34 AM10/16/20
to CAS Community
Hi team,

I am new to CAS.
We are using cas 6.0.X.
I am trying to add a custom admin login page.

Html display worked fine. I just added a casAdminLoginView.html in resource/templates.

Now I am facing issue in model binding.
Tried giving th:object="{credential} in form, as i was under the assumption UserPasswordCredential.java was auto mapped to login page.
I tried adding a json in service folder with 
"requiredhandlers" - Querydatabaseauthenticationhandler.
which accepts UsernamePasswordCredential.java as input

This is still throwing error.
 
java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'credential' available as request attribute  


Please let me know what all additional things I have to do.

Thanks in advance
Tibin

Ray Bon

unread,
Oct 16, 2020, 1:49:57 PM10/16/20
to cas-...@apereo.org
Tibin,

Tell us why you are trying to add a custom admin page, there may be other alternatives.


Ray

On Fri, 2020-10-16 at 01:55 -0700, Tibin Abraham wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I respectfully acknowledge that my place of work is located within the ancestral, traditional and unceded territory of the Songhees, Esquimalt and WSÁNEĆ Nations.
Reply all
Reply to author
Forward
0 new messages