How to get client secret from azure active directory for native app for using one drive business API?(如何从本机应用程序的天蓝色活动目录中获取客户端机密以使用一个驱动器业务 API?)
问题描述
我正在开发一个 Outlook 插件.我想在其中使用一个驱动器 API.我很容易获得客户端 ID 和客户端密码,以便将 API 用于一个驱动器个人帐户.但是,当我为一个驱动器业务 API 注册我的应用程序时天蓝色的活动目录,它只为我创建了一个客户端 ID,但没有创建任何客户端密码.我在注册时选择了本机应用程序,因为我的应用程序是本机应用程序.没有客户端密码我无法验证用户.请告诉我,如何获取客户端密码?提前谢谢.
I am developing an outlook plugin.I want use one drive API's in it.I easily got the client Id and client secret for using API's for one drive personal accounts.But, when I registered my application for one drive business API's in azure active directory, it created only a client Id for me, but didn't create any client secret.I chose native app while registering, as my app is a native app.I can't authenticate the user without the client secret.Please let me know , how to get the client secret?Thanks in advance.
推荐答案
本地客户端没有与之关联的任何机密 - 鉴于它们旨在在设备上运行,假设它们无法保护一个秘密.本机客户端使用 clientID 来指示客户端应用程序,但身份验证始终通过在流程中涉及用户身份来完成.如果您在 http://github.com/azureadsamples 中选择任何本机客户端示例,您将看到 clientid足以触发用户身份验证.
Native clients don't have any secrets associated to them - given that they are meant to run on devices, it is assumed that they would not be able to protect a secret. Native clients use the clientID for indicating the client app, but the authentication is always done by involving a user identity in the process. If you pick any of the native client samples in http://github.com/azureadsamples you will see how the clientid is enough to trigger user auth.
这篇关于如何从本机应用程序的天蓝色活动目录中获取客户端机密以使用一个驱动器业务 API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何从本机应用程序的天蓝色活动目录中获取客


- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- 输入按键事件处理程序 2022-01-01