how do I understand microsoft graph API using python taking under account the last news about Deprecated Azure AD?

Mario Alejandro Rodriguez Pachon 20 Reputation points
2023-05-30T06:30:58.0266667+00:00

Hello,

I'm so confused about trying to migrate the Auth method from azure AD to MSAL . I'm using client Id and client secret to auth my app (with python 3.10.4), so now, how should do I use for auth without azure AD? Can you give me examples?

would be great have the exact guide documentation to follow the right steps in order to learn this (I know SDK python is in Beta version so I discard this option to production projects).

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,684 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,953 questions
0 comments No comments
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,896 Reputation points Microsoft Employee Moderator
    2023-05-30T22:13:19.11+00:00

    @Mario Alejandro Rodriguez Pachon

    Thank you for your post!

    I understand that you're having issues with the migration from ADAL to MSAL and would like some examples or documentation on how to do this within Python. To hopefully help point you in the right direction, I'll share my findings below.


    Findings:

    Migrate your apps from Azure AD Graph to Microsoft Graph

    • You should be able to follow this documentation which has a checklist to help you plan your migration from Azure Active Directory (Azure AD) Graph to Microsoft Graph.

    ADAL to MSAL migration guide for Python

    • This article highlights changes you need to make within Python to migrate an app from ADAL to MSAL.

    How to migrate to MSAL

    • This section within the Migrate applications to the MSAL doc links to different app examples/tutorials to help with your migration.

    Microsoft Authentication Library (MSAL) for Python Issues


    Additional Link:

    I hope this helps!

    If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.


    If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.