You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These function from Microsoft.InformationProtectionAndControl::SafeFileApiNativeMethods supports pass only SymmetricKeyCredential for credential:
IpcfEncryptFile
IpcfEncryptFileStream
IpcfDecryptFile
When you working against Rights Management Servers that have setup OAuth2 authentication, you need pass your OAuth2CallbackContext instead symmetric credential.
Code looks prepared for OAuth2, because all these functions calls SafeNativeMethods.CreateIpcPromptContext which supports OAuth2.
These function from Microsoft.InformationProtectionAndControl::SafeFileApiNativeMethods supports pass only
SymmetricKeyCredential
for credential:IpcfEncryptFile
IpcfEncryptFileStream
IpcfDecryptFile
When you working against Rights Management Servers that have setup OAuth2 authentication, you need pass your
OAuth2CallbackContext
instead symmetric credential.Code looks prepared for OAuth2, because all these functions calls
SafeNativeMethods.CreateIpcPromptContext
which supports OAuth2.Note: You can inspire with my PR #25.
The text was updated successfully, but these errors were encountered: