Skip to content

Commit 0d71bd3

Browse files
Abel Milashclaude
andcommitted
Simplify async auth docs: single import with one-line note on interactive
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5c6bdc7 commit 0d71bd3

3 files changed

Lines changed: 3 additions & 13 deletions

File tree

.claude/skills/dataverse-sdk-use/SKILL.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -594,11 +594,7 @@ The SDK ships a full async client, `AsyncDataverseClient`, under `PowerPlatform.
594594

595595
### Import
596596
```python
597-
# AsyncDataverseClient requires an async-compatible credential (async def get_token())
598-
from azure.identity.aio import DefaultAzureCredential # works in most environments
599-
from azure.identity.aio import ClientSecretCredential # explicit service principal
600-
# For interactive browser (development), use the AsyncInteractiveBrowserCredential wrapper
601-
# from examples/aio/_auth.py — azure.identity.InteractiveBrowserCredential is sync-only
597+
from azure.identity.aio import DefaultAzureCredential # InteractiveBrowserCredential is sync-only; use DefaultAzureCredential or azure.identity.aio equivalents
602598
from PowerPlatform.Dataverse.aio.async_client import AsyncDataverseClient
603599
```
604600

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,6 @@ pip install "PowerPlatform-Dataverse-Client[async]"
798798

799799
### Quick start
800800

801-
`AsyncDataverseClient` requires an async-compatible credential (`async def get_token()`). Use credentials from `azure.identity.aio` for production, or `AzureCliCredential` for local development:
802-
803801
```python
804802
import asyncio
805803
from azure.identity.aio import DefaultAzureCredential
@@ -821,7 +819,7 @@ async def main():
821819
asyncio.run(main())
822820
```
823821

824-
> **Interactive browser (development):** `InteractiveBrowserCredential` from `azure.identity` is sync-only and cannot be passed directly. See [examples/aio/_auth.py](https://github.com/microsoft/PowerPlatform-DataverseClient-Python/blob/main/examples/aio/_auth.py) for an async wrapper used by the example scripts.
822+
> **Note:** `InteractiveBrowserCredential` from `azure.identity` is sync-only and cannot be used directly with the async client. See [examples/aio/_auth.py](https://github.com/microsoft/PowerPlatform-DataverseClient-Python/blob/main/examples/aio/_auth.py) for an async wrapper.
825823
826824
### Standalone usage (without `async with`)
827825

src/PowerPlatform/Dataverse/claude_skill/dataverse-sdk-use/SKILL.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -594,11 +594,7 @@ The SDK ships a full async client, `AsyncDataverseClient`, under `PowerPlatform.
594594

595595
### Import
596596
```python
597-
# AsyncDataverseClient requires an async-compatible credential (async def get_token())
598-
from azure.identity.aio import DefaultAzureCredential # works in most environments
599-
from azure.identity.aio import ClientSecretCredential # explicit service principal
600-
# For interactive browser (development), use the AsyncInteractiveBrowserCredential wrapper
601-
# from examples/aio/_auth.py — azure.identity.InteractiveBrowserCredential is sync-only
597+
from azure.identity.aio import DefaultAzureCredential # InteractiveBrowserCredential is sync-only; use DefaultAzureCredential or azure.identity.aio equivalents
602598
from PowerPlatform.Dataverse.aio.async_client import AsyncDataverseClient
603599
```
604600

0 commit comments

Comments
 (0)