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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何从本机应用程序的天蓝色活动目录中获取客


基础教程推荐
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01