The problem is that the login WebScript is working with username / password. Rather than the sso token which is generated by your cas server.
Can you add something to the authentication chain (such as an ldap connection) to allow username/ password validation for your external users? In addition it would be worth studying how share sso authentication works, somehow it calls web scripts with sso ( unfortunately I don't personally know about that) so there may be another way to run a WebScript or getting a ticket.