Expand description
Authentication: a self-contained, bring-your-own bearer token trait.
§Auth burden
The Python reference (PurviewClient) accepts an azure-identity
TokenCredential or AsyncTokenCredential directly, so it inherits
whatever credential chain the caller already has configured
(DefaultAzureCredential, InteractiveBrowserCredential, a managed
identity, …). This crate has no azure_identity-equivalent dependency
to accept, and per this work package’s brief is deliberately
self-contained: it defines its own minimal TokenProvider trait
rather than depending on agent-framework-azure’s TokenCredential (a
near-identical trait one layer up), so this crate has no dependency on
any other provider crate in this workspace.
Bring a Microsoft Graph bearer token with the
https://graph.microsoft.com/.default scope (or the equivalent for a
custom PurviewSettings::graph_base_uri —
see PurviewSettings::get_scopes),
carrying the dataSecurityAndGovernance Graph permission described in
the Python package’s README. StaticTokenProvider is provided for a
fixed/pre-fetched token (tests, short-lived scripts, or externally-managed
refresh).
Structs§
- Static
Token Provider - A
TokenProviderthat always returns the same, pre-fetched token.
Traits§
- Token
Provider - Supplies bearer tokens for Microsoft Graph (Purview) requests. See the module docs for why this trait exists instead of reusing another crate’s.