Exemplo n.º 1
0
        // **************************************
        // Cas Logon
        // **************************************
        public ActionResult CasLogon(string returnUrl)
        {
            string resultUrl = CASHelper.Login();   // do cas logon

            if (resultUrl != null)
            {
                return(Redirect(resultUrl));
            }

            return(this.RedirectToAction <ErrorController>(a => a.NotAuthorized()));
        }
Exemplo n.º 2
0
        public ActionResult Login(string returnUrl)
        {
            string resultUrl = CASHelper.Login(); //Do the CAS Login

            if (resultUrl != null)
            {
                return(Redirect(resultUrl));
            }

            TempData["URL"] = returnUrl;

            return(View());
        }