11# Copyright (c) Microsoft Corporation.
22# Licensed under the MIT license.
33
4- from __future__ import annotations
5-
64"""
75Authentication helpers for Dataverse.
86
9- This module provides :class:`~PowerPlatform.Dataverse.core .auth.AuthManager`, a thin wrapper over any Azure Identity
10- ``TokenCredential`` for acquiring OAuth2 access tokens, and :class:`~PowerPlatform.Dataverse.core .auth.TokenPair` for
7+ This module provides :class:`~PowerPlatform.Dataverse._core .auth.AuthManager`, a thin wrapper over any Azure Identity
8+ ``TokenCredential`` for acquiring OAuth2 access tokens, and :class:`~PowerPlatform.Dataverse._core .auth.TokenPair` for
119storing the acquired token alongside its scope.
1210"""
1311
12+ from __future__ import annotations
13+
1414from dataclasses import dataclass
1515
1616from azure .core .credentials import TokenCredential
@@ -22,9 +22,9 @@ class TokenPair:
2222 Container for an OAuth2 access token and its associated resource scope.
2323
2424 :param resource: The OAuth2 scope/resource for which the token was acquired.
25- :type resource: `` str` `
25+ :type resource: :class:` str`
2626 :param access_token: The access token string.
27- :type access_token: `` str` `
27+ :type access_token: :class:` str`
2828 """
2929 resource : str
3030 access_token : str
@@ -53,7 +53,7 @@ def acquire_token(self, scope: str) -> TokenPair:
5353 :param scope: OAuth2 scope string, typically ``"https://<org>.crm.dynamics.com/.default"``.
5454 :type scope: ``str``
5555 :return: Token pair containing the scope and access token.
56- :rtype: ~PowerPlatform.Dataverse.core .auth.TokenPair
56+ :rtype: ~PowerPlatform.Dataverse._core .auth.TokenPair
5757 :raises ~azure.core.exceptions.ClientAuthenticationError: If token acquisition fails.
5858 """
5959 token = self .credential .get_token (scope )
0 commit comments