Hi, Kazim.
In Gluu Server there is a feature called "person authentication scripts". That's a script written in Jython that implements a custom authentication method, allowing you to extend basic authentication options Gluu offers. We also have a ready to use CAS person authentication script, so you can delegate user authentication to your existing CAS server.
Hope this helps.