CAS authentication middleware for PSGI