public ActionResult CheckUrl() { var is21v = ClaimsPrincipal.Current.FindFirst("iss").Value.IndexOf("china") >= 0; var siteUrl = HttpUtility.UrlDecode(Request.QueryString["siteUrl"]); // var accessToken = HttpCookie.get CacheHelper.Instance.Get(tenant)?.ToString(); var accessToken = SPOnlineController.Token; if (string.IsNullOrEmpty(accessToken)) { accessToken = Office365Helper.GetSPOnlineTokenAsync(Tenant, siteUrl, is21v); //CacheHelper.Instance.Set(tenant, accessToken, 3500); } var title = SPOnlineHelper.GetSharePointTitle(accessToken, siteUrl); ResponseModel r = new ResponseModel(); r.IsSuccess = !string.IsNullOrEmpty(title); r.Data = title; return(Json(r, JsonRequestBehavior.AllowGet)); }