コード例 #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()));
        }
コード例 #2
0
ファイル: AccountController.cs プロジェクト: ucdavis/Badges
        public ActionResult Login(string returnUrl)
        {
            string resultUrl = CASHelper.Login(); //Do the CAS Login

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

            TempData["URL"] = returnUrl;

            return(View());
        }