Skip to content

Commit 20975f2

Browse files
committed
Managed Identity implementation
Fix docs Adjusting error message and docs Fix typo
1 parent b081f3d commit 20975f2

File tree

6 files changed

+762
-0
lines changed

6 files changed

+762
-0
lines changed

docs/index.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,23 @@ You may want to catch them to provide a better error message to your end users.
168168

169169
.. autoclass:: msal.IdTokenError
170170

171+
172+
Managed Identity
173+
================
174+
MSAL supports
175+
`Managed Identity <https://learn.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview>`_.
176+
177+
You can create one of these two kinds of managed identity configuration objects:
178+
179+
.. autoclass:: msal.SystemAssignedManagedIdentity
180+
:members:
181+
182+
.. autoclass:: msal.UserAssignedManagedIdentity
183+
:members:
184+
185+
And then feed the configuration object into a :class:`ManagedIdentityClient` object.
186+
187+
.. autoclass:: msal.ManagedIdentityClient
188+
:members:
189+
190+
.. automethod:: __init__

msal/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@
3434
from .oauth2cli.oidc import Prompt, IdTokenError
3535
from .token_cache import TokenCache, SerializableTokenCache
3636
from .auth_scheme import PopAuthScheme
37+
from .managed_identity import (
38+
SystemAssignedManagedIdentity, UserAssignedManagedIdentity,
39+
ManagedIdentityClient,
40+
ManagedIdentityError,
41+
)
3742

3843
# Putting module-level exceptions into the package namespace, to make them
3944
# 1. officially part of the MSAL public API, and
4045
# 2. can still be caught by the user code even if we change the module structure.
4146
from .oauth2cli.oauth2 import BrowserInteractionTimeoutError
47+

0 commit comments

Comments
 (0)