Hello,
is there a way to get a authorized url of specific file stored in SharePoint Online?
I have an (win) application, that can upload files fine. Later, the file (the uniequid is stored in a database) should be show in a webbrowser control without login.
Similar to Listitem.File.GetPreAuthorizedAccessUrl(), this works?
For Example ServerRelativeUrl + accesstoken.
Login with username and password works fine. (below the Sourcecode)
- "********".ToList().ForEach(c => securePassword.AppendChar(c));
- clientContext = new ClientContext("https://mysharepoint.sharepoint.com");//Credentials.URL);
- clientContext.Credentials = new SharePointOnlineCredentials("[email protected]", securePassword);
-
Any ideas?