Plack middleware for CAS authentication