We are developing a Word add-in in C # and WPF.
Documents are opened from SharePoint, which live in a different domain, and are processed using an add-in. When the document opens, MS Word asks for credentials for the SharePoint domain.
In the Word add-in, I need to get these credentials or any security token in order to install it using SharePoint.
When I try to use CredentialsCache with C #, I get the credentials for the local Windows account / domain, but not for the Sharepoint domain account.
I understand that Word stores credentials for SharePoint, as I can register / verify and save without re-entering the password.
But can I somehow get these credentials from the code to access SharePoint services without asking for the password again?
source share