Red5 jwchat configuration CAS

Hi! We are using openfire 3.3.3 +red5 0.0.9 to make online audio and video chat. We use our own red5 jwchat as our Client. And we hope to use CAS to make Single Sign On (SSO). After users logon, they can directly enter jwchat no longer need to login. How it might become possible? If we can make it possible, how should the configuration be?