private static string GetSecurityToken(ClientContext context, string username, string password) { string envelope = FormatEnvelope(username, password, context.SharePointUri.AbsoluteUri); return(UserAuthentication.GetSecurityToken(context, envelope)); }
internal static void Authenticate(ClientContext context, string username, string password) { string securityToken = UserAuthentication.GetSecurityToken(context, username, password); UserAuthentication.GetAccessToken(context, securityToken); }