Exemplo n.º 1
0
        public void IsLdapEnabledShouldReturnEnabledValue()
        {
            Assert.IsFalse(_service.IsLdapEnabled());

            SetUpLdapSettings();

            Assert.IsTrue(_service.IsLdapEnabled());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Login(string?returnUrl = null)
        {
            // Clear the existing external cookie to ensure a clean login process
            await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);

            ViewData["ReturnUrl"]   = returnUrl;
            ViewData["LdapEnabled"] = _ldapService.IsLdapEnabled();
            return(View());
        }