I want to implement a custom logging by passing authentication information.http://blogs.msdn.com/b/cjohnson/ar...-online-and-the-client-side-object-model.aspxhttp://msdn.microsoft.com/en-us/library/hh147177(v=office.14).aspxI'm using the below code but it does not automatically login instead it just popup the login window to enter username and password. I want to automatically log in by passing the credentials pro grammatically.\[code\]using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.SharePoint.Client;using System.Net;using MSDN.Samples.ClaimsAuth;namespace Sp_Ctx{ class Program { [STAThread] static void Main(string[] args) { //if (args.Length < 1) { Console.WriteLine("SP_Ctx <url>"); return; } string targetSite = "https://mysite.sharepoint.com";//args[0]; using (ClientContext ctx = ClaimClientContext.GetAuthenticatedContext(targetSite)) { if (ctx != null) { ctx.Credentials = new NetworkCredential("[email protected]", "password", "mysite.sharepoint.com"); ctx.Load(ctx.Web); // Query for Web ctx.ExecuteQuery(); // Execute Console.WriteLine(ctx.Web.Title); } } Console.ReadLine(); } }}\[/code\]UPDATE:I've hosted a MS 365 sharepoint 2013 site but i want to use the version 2010 authentication mechanism.