Title: Add acquire_token() public method for cross-resource auth by athanipavan · Pull Request #182 · microsoft/PowerPlatform-DataverseClient-Python · GitHub
Open Graph Title: Add acquire_token() public method for cross-resource auth by athanipavan · Pull Request #182 · microsoft/PowerPlatform-DataverseClient-Python
X Title: Add acquire_token() public method for cross-resource auth by athanipavan · Pull Request #182 · microsoft/PowerPlatform-DataverseClient-Python
Description: Summary
Adds _AuthManager.acquire_token(resource_url) -- a thin public helper over the existing _acquire_token: appends /.default and delegates to the underlying TokenCredential. Lets callers reuse the same credential to obtain tokens for any Microsoft AAD-protected resource (notably a linked Finance & Operations env) via client.auth.acquire_token(fno_url).
Refactors internal _ODataClient._headers() to call the new method, so the DV and external paths share one scope-construction site (no duplication).
README, both SKILL.md copies, and CHANGELOG updated. Inline DummyAuth mocks in conftest.py and three test modules updated to also expose acquire_token so existing _odata._headers tests still pass with the refactored call site.
End-to-end verification
Probe against a real F&O int env using the modified SDK + AzureCliCredential:
Step
Result
client.auth.acquire_token("https://aurorabapenvf94ec.operations.int.dynamics.com")
Token issued, length 2948
Token aud claim (decoded JWT)
https://aurorabapenvf94ec.operations.int.dynamics.com (F&O resource, not DV)
GET
Open Graph Description: Summary Adds _AuthManager.acquire_token(resource_url) -- a thin public helper over the existing _acquire_token: appends /.default and delegates to the underlying TokenCredential. Lets callers reus...
X Description: Summary Adds _AuthManager.acquire_token(resource_url) -- a thin public helper over the existing _acquire_token: appends /.default and delegates to the underlying TokenCredential. Lets callers reus...
Opengraph URL: https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/182
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9c7c82c5-4ecb-dafc-20ce-e815fa149912 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ADE0:3ED5C4:28A1F3F:3A7BEA3:6A4D23B1 |
| html-safe-nonce | da1dca64d5a71bb51050ce5ba121c6e7fb4deb4bf4372e9dc988c156dc8e7ffd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREUwOjNFRDVDNDoyOEExRjNGOjNBN0JFQTM6NkE0RDIzQjEiLCJ2aXNpdG9yX2lkIjoiNzUwMTM3OTI2NDM3MDc3OTA1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 00558d395ab38026ce734cdc1f4e25b6bd129f63eec9575bf9d392c730e81070 |
| hovercard-subject-tag | pull_request:3682189807 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/182/files |
| twitter:image | https://avatars.githubusercontent.com/u/17001961?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/17001961?s=400&v=4 |
| og:image:alt | Summary Adds _AuthManager.acquire_token(resource_url) -- a thin public helper over the existing _acquire_token: appends /.default and delegates to the underlying TokenCredential. Lets callers reus... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/microsoft/PowerPlatform-DataverseClient-Python git https://github.com/microsoft/PowerPlatform-DataverseClient-Python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 1042273116 |
| octolytics-dimension-repository_nwo | microsoft/PowerPlatform-DataverseClient-Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1042273116 |
| octolytics-dimension-repository_network_root_nwo | microsoft/PowerPlatform-DataverseClient-Python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width