Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     var userId = Request.QueryString["u"];
     var transferId = Request.QueryString["tid"];
     var token = Request.QueryString["tkn"];
     ServiceReference1.AuthServiceClient c = new AuthServiceClient();
     c.ClientCredentials.UserName.UserName = "******";
     c.ClientCredentials.UserName.Password = "******";
     var newSessionId = c.ValidateTransfer("", userId, transferId, token);
     if (newSessionId != null)
     {
         lbl.Text = "Successfully Authenticated <br/>" + userId + " + " + newSessionId;
     }
 }