public void IsLdapEnabledShouldReturnEnabledValue() { Assert.IsFalse(_service.IsLdapEnabled()); SetUpLdapSettings(); Assert.IsTrue(_service.IsLdapEnabled()); }
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()); }