Add support for CAS gateway