Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ClientContext context = new ClientContext(siteUrl);
- Authenticator at = new Authenticator();
- at.UserName = Login;
- at.Password = password;
- at.AuthenticationMode = ClientAuthenticationMode.MicrosoftOnline;
- at.CookieCachingEnabled = true;
- SetAdfsSettings(at);
- //at.FederationPassiveAuthUri = "urn:oasis:names:tc:SAML:2.0:ac:classes:Password";
- context.Credentials = at;
- List photos= context.Web.Lists.GetByTitle("Photos");
- ClientContext context = new ClientContext(siteUrl);
- Authenticator at = new Authenticator();
- at.UserName = Login;
- at.Password = password;
- at.AuthenticationMode = ClientAuthenticationMode.MicrosoftOnline;
- at.CookieCachingEnabled = true;
- // SetAdfsSettings(at);
- at.FederationPassiveAuthUri = "urn:oasis:names:tc:SAML:2.0:ac:classes:Password";
- at.NavigateBackAfterAuthentication = true;
- at.AllowSmartRouting = true;
- at.PromptOnFailure = true;
- at.UagServerUrl = new Uri("https://adfs.jolera.com/adfs/ls/");
- context.Credentials = at;
- List photos= context.Web.Lists.GetByTitle("Photos");
- UploadDocument(photos, siteUrl, "Photos/", "photo.jpg", photo);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement