如果用户名&如何获得Azure活动目录的clientID Python中的密码 [英] How to get clientID of azure active directory if username & password in Python

查看:346
本文介绍了如果用户名&如何获得Azure活动目录的clientID Python中的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为标题,我需要获取活动的azure目录的客户端ID,以便在linux&之间执行文件传输.一个驱动器.是否有任何API.

As the title, I need to get the client ID of the active azure directory for performing file transfer between linux & onedrive. Is there any API for this.

推荐答案

您不能使用用户名&创建或获取客户端ID的密码.

You can't use username & password to create or get the client id.

用户凭据和客户端ID之间没有连接.

There is no connection between user credentials and client id.

您应该通过

You should get the client id by creating an Azure AD app. You can see "appId": "631a96bc-a705-4eda-9f99-fdaf9f54f6a2", in the response. appId is the client id.

您还可以通过但是我认为您不需要在代码中创建一个Azure AD应用程序或获取一个Azure AD应用程序,然后再使用客户端ID.如果要调用Microsoft Graph API,则应在Azure门户中创建Azure AD应用,并从那里获取客户端ID,并将其配置到您的项目中.

But I don't think you need to create an Azure AD app or get an Azure AD app in your code and then use the client id. If you want to call Microsoft Graph API, you should create the Azure AD app in Azure portal and get the client id from there and configure it into your project.

这篇关于如果用户名&如何获得Azure活动目录的clientID Python中的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆