Esempio n. 1
0
 private void BISSOGO()
 {
     Multek.com.multek.bi.SSOAuthen SSO = new Multek.com.multek.bi.SSOAuthen();
     if (Request.QueryString["token"] == null)
     {
         Response.Redirect(SSO.getSSOLoginPage(Server.UrlEncode(Request.Url.ToString())));
     }
     else
     {
         if (Request.QueryString["pair"] != null && Request.QueryString["token"] != null)
         {
             string a = SSO.testAuthentication(Request.QueryString["token"].ToString(), Request.QueryString["pair"].ToString());
             if (a == "failed" || a == "expired" || a == "")
             {
                 Label5.Text = "failed to access this application!";
             }
             else
             {
                 string[] Users;
                 Users = a.Trim().Split('\\');
                 if (Users.Length == 2)
                 {
                     securityChecking(Users[0], Users[1]);
                 }
                 else
                     Label5.Text = "unknow";
             }
         }
     }
     SSO.Dispose();
 }