I'm looking into options for extracting the authentication logic from several applications (mostly Rails). I remember CAS from a previous job (indeed, I wrote a Rack middleware for CAS authentication a while back:
https://github.com/jamesarosen/casrack_the_authenticator) and would to use it if possible. The problem is that each of the apps needs to support *several* authentication methods. One of them is the "happy CAS path" wherein the app shows a form to browsers and then sets a cookie. Others include HTTP headers and HTTP Basic Authentication (for API requests). Has anyone deployed CAS to support multiple authentication methods? In these other cases, the credentials are sent with every request and there shouldn't be any cookies. I don't see how to make that work with CAS.