Exemplo n.º 1
0
 public ActionResult Login()
 {
     try
     {
         var keycloakManager = new WebManager(settings);
         var url             = keycloakManager.GenerateLoginUri();
         return(Redirect(url.ToString()));
     }
     catch (Exception ex)
     {
         return(RedirectToAction("CallbackError", new { error = $"Exception while calling Keycloak. Exception {ex.Message}" }));
     }
 }