无应用程序访问Azure AD资源

时间:2017-07-24 18:05:41

标签: python azure azure-active-directory azure-api-management azure-api-apps

我可以在不注册新应用的情况下访问Azure AD资源,例如应用名称和其他详细信息吗?我想查询REST API。

2 个答案:

答案 0 :(得分:1)

不,你不能。 Azure AD的唯一Graph APIandroid/app/build.gradle。您必须注册一个应用程序才能使用。 Azure AD PowerShell Module本身有一个注册的应用程序。 如果没有注册应用程序,您根本无法获得令牌。 Azure门户本身也是一个注册的应用程序。

在OAuth World(explained here)中,您拥有非常重要的部分 - 客户端,这是已注册的应用程序。你无法避免它。

答案 1 :(得分:0)

您可以使用azure-graphrbac Python包来实现:

https://azure-sdk-for-python.readthedocs.io/en/latest/graphrbac.html

https://docs.microsoft.com/python/api/azure.graphrbac.graphrbacmanagementclient

这是Python中的RestAPI官方包装器,我认为这是对你的问题的准确答案,因为你标记了" python"。

相关问题