Hi @ITF,
Thank you very much for reaching out regarding the issue you're facing with your Python script and the consent URL. I truly appreciate your patience and the detailed explanation you provided.
Based on your description, the behavior you're encountering appears to be directly related to Azure authentication and application registration settings. Since my support category mainly focuses on general Office 365 topics, and your scenario involves Azure / Microsoft Entra ID (authentication, redirect URI, OAuth flow), it falls outside the scope of what I can fully troubleshoot in this area.
To ensure you receive the most accurate and dedicated assistance, and to avoid any misunderstandings or delays, I sincerely recommend posting your question in the Azure Community, which is the official channel specializing in Azure identity, authentication flows, and related developer topics
The experts and engineers in that community are highly specialized in Azure and will be able to guide you more deeply through your App Registration configuration, redirect URI requirements, and authentication flow.
Please accept my apologies for redirecting you to a different community. The members in the category where the question was originally posted primarily focus on Office applications, and may have limited knowledge and resources regarding Azure AD, OAuth, and Graph API authentication. Redirecting you to the correct forum will ensure that you receive faster and more accurate support.
I hope this information is helpful. Should you have any further questions or need additional assistance, feel free to reach out.
Thank you again for your understanding and cooperation.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have any extra questions about this answer, please click "Comment".
Note: Follow the steps in our documentation to enable email notifications if you want to receive email notifications related to this topic.