Configurable SSO based on deployment mode