Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some SafeFileApiNativeMethods do not supports OAuth credential #29

Open
dudasl opened this issue Mar 20, 2018 · 1 comment
Open

Some SafeFileApiNativeMethods do not supports OAuth credential #29

dudasl opened this issue Mar 20, 2018 · 1 comment

Comments

@dudasl
Copy link

dudasl commented Mar 20, 2018

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.

@pofman
Copy link

pofman commented Apr 20, 2018

@kkanakas is any update / sample code regarding OAuth2 support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants