litellm-mirror/litellm/proxy/secret_managers
Krish Dholakia 3fbb4f8fac Azure Service Principal with Secret authentication workflow. (#5131) (#5437)
* Azure Service Principal with Secret authentication workflow. (#5131)

* Implement Azure Service Principal with Secret authentication workflow.

* Use `ClientSecretCredential` instead of `DefaultAzureCredential`.

* Move imports into the function.

* Add type hint for `azure_ad_token_provider`.

* Add unit test for router initialization and sample completion using Azure Service Principal with Secret authentication workflow.

* Add unit test for router initialization with neither API key nor using Azure Service Principal with Secret authentication workflow.

* fix(client_initializtion_utils.py): fix typing + overrides

* test: fix linting errors

* fix(client_initialization_utils.py): fix client init azure ad token logic

* fix(router_client_initialization.py): add flag check for reading azure ad token from environment

* test(test_streaming.py): skip end of life bedrock model

* test(test_router_client_init.py): add correct flag to test

---------

Co-authored-by: kzych-inpost <142029278+kzych-inpost@users.noreply.github.com>
2024-09-02 14:29:00 -07:00
..
aws_secret_manager.py fix(aws_secret_manager.py): fix litellm license check 2024-07-03 22:07:48 -07:00
get_azure_ad_token_provider.py Azure Service Principal with Secret authentication workflow. (#5131) (#5437) 2024-09-02 14:29:00 -07:00
google_kms.py fix(google_kms.py): support enums for key management system 2023-12-27 13:19:33 +05:30