Skip to content

Some SafeFileApiNativeMethods do not supports OAuth credential #29

@dudasl

Description

@dudasl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions