/// <summary> /// 获取SSO URL /// </summary> /// <param name="context">http请求上下文</param> /// <returns>SSO URL</returns> public string GetSSOUrl(HttpContext context) { MStaffInfo staffInfo = HttpContext.Current.Session["$safeprojectname$_UserInfo"] as MStaffInfo; string strReturn = "{\"status\":false,\"url\":\"\",\"flg\":false,\"domainUrl\":\"\"}"; if (staffInfo == null) { return strReturn; } if (SSOClientConfigHelper.SSOType == 0) { return strReturn; } DefaultClient client = new DefaultClient(); strReturn = client.GetSSOUrl(staffInfo.Staff_id, staffInfo.Password); return strReturn; }