Files
presidio/docs/samples/python
Dor Lugasi-Gal dd1623fadc Add Azure OpenAI support for LangExtract recognizer (#1801)
* Add Azure OpenAI support for LangExtract recognizer

* ruff

* add redundnant tests to achieve 100% coverage

* Add error handling and tests for Azure OpenAI provider initialization

* Fix Microsoft Defender secret scanning false positives

Replace test API keys with obviously fake placeholders:
- test-api-key → PLACEHOLDER_NOT_A_REAL_KEY
- test-key-123 → PLACEHOLDER_NOT_A_REAL_KEY
- env-key → PLACEHOLDER_FROM_ENV
- key → PLACEHOLDER_KEY

These are unit test mock values, not real secrets. Using
placeholder patterns that won't trigger security scanners
while maintaining test validity. All 29 tests passing.

* remove bandit

* Add bandit tool to Microsoft Security DevOps workflow

* Remove bandit from Microsoft Security DevOps workflow tools

* Update AzureOpenAILangExtractRecognizer to use deployment name from environment variable

* Refactor Azure OpenAI integration: remove legacy provider, update recognizer, and adjust tests

* Improve error handling during Azure OpenAI provider registration by logging as error and raising exception

* Refactor Azure OpenAI provider initialization logging for improved readability

* Refactor test imports in Azure OpenAI recognizer tests for improved clarity and organization

* Refactor Azure OpenAI provider tests to remove unnecessary variable assignments for improved clarity

* Refactor langextract configuration: reorder supported entities and update entity mappings for consistency

* Refactor Azure OpenAI integration: enhance documentation, improve endpoint validation, and streamline provider registration

* Refactor Azure OpenAI LangExtract Recognizer: remove unused import and clean up code formatting

* Refactor Azure OpenAI provider tests: update imports to use the correct module and remove obsolete test for langextract availability

* Refactor Azure authentication handling: consolidate credential management into azure_auth_helper and update related recognizers and tests

* Refactor Azure OpenAI recognizers: enhance module imports for registration, streamline model ID handling, and improve test coverage for credential selection

* Refactor AHDS Surrogate operator: streamline error handling by mocking Azure credentials and client, and improve code readability

* Refactor AHDS Recognizer tests: replace multiple credential mocks with a single get_azure_credential mock for improved clarity and maintainability
2025-12-04 12:11:19 +02:00
..
2025-09-28 15:21:12 +03:00
2024-12-29 13:16:29 +02:00