Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.WriteLine("Please enter your username for PWA");
- userName = Console.ReadLine();
- Console.WriteLine("Please enter your password for PWA");
- passWord = Console.ReadLine();
- NetworkCredential netcred = new NetworkCredential("user", "password");
- SharePointOnlineCredentials orgIDCredential = new SharePointOnlineCredentials(netcred.UserName, netcred.SecurePassword);
- context.Credentials = orgIDCredential;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement