BUG8446, Follow up: Add template rules for Shibboleth and CAS

- Add template ruels so that CAS and Shibboleth can coexist.