Simple connect middleware for CAS (Central Authentication Service)