gpt4 book ai didi

c# - Azure Apim 承载 token

转载 作者:行者123 更新时间:2023-12-03 06:55:43 30 4
gpt4 key购买 nike

大家好,我正在关注 azure 的下一个教程: https://learn.microsoft.com/en-us/rest/api/apimanagement/current-ga/subscription/create-or-update?tabs=HTTP&tryIt=true&source=docs [Azure 创建或更新订阅]

我已经让它工作了,但我不知道示例使用的不记名 token 来自哪里

有人可以向我解释一下如何获得不记名 token 吗?实际上我计划使用它从后端创建 api key ,但我不完全知道从哪里可以请求不记名 token 。

我知道安全部分写着“Azure Active Directory OAuth2 Flow”,但有人可以向我解释它是如何工作的吗?

最佳答案

您可以通过以下命令获取不记名 token postman:

发布 https://login.microsoftonline.com/**{tenantid}**/oauth2/token

从您的应用程序中,您可以获取租户 ID 和客户端 IDAzure 门户 ->Azure Active Directory ->您的应用 -> 概述 enter image description here

客户端 key : enter image description here

enter image description here

当您发送命令时,您可以获得不记名 token 。

enter image description here

引用: Azure REST API: Create Bearer Token - cloudopszone.com

关于c# - Azure Apim 承载 token ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72988294/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com