Skip to content

DocumentIntelligenceOCR support for Azure Identity (e.g DefaultAzureCredential, ClientSecretCredential) #1882

@jasonchanhku

Description

@jasonchanhku

Is your feature request related to a problem? Please describe.
I am trying to do image PII redaction and using Document Intelligence as OCR in an enterprise that enforces usage of Azure Identity, e.g DefaultAzureCredential, ClientSecretCredential. However current DocumentIntelligenceOCR class only supports api key directly.

Describe the solution you'd like
DocumentIntelligenceOCR can be passed a credential parameter which takes in the likes of DefaultAzureCredential(), ClientSecretCredential(), etc

Describe alternatives you've considered
Altering source code and manually install

Additional context
https://github.com/microsoft/presidio/blob/main/presidio-image-redactor/presidio_image_redactor/document_intelligence_ocr.py

Image

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