Rack middleware that handle client authentication with a cas server