Added functionality for using SAML SSO
changes are marked with SAMLMOD: tag