limitation being that shiro doesn't yet understand proxy tickets. So this only works when the user is directly interacting with your http service/application.
(This is not a complete example, only the parts needed to be added to an existing dropwizard service to enable CAS)