Central authorization

I am building a couple applications (rails, java, some other legacy
apps) and would like to have centralized authorization.
Authentication is handled through JA SIGs CAS (Central Authentication
Service).

Has anyone attempted this in RoR and would like to provide some
pointers?

Thanks!