如何使用.Net core在Azure中验证外部Oauth令牌

问题描述 投票:0回答:1

我有一个托管在 Azure 中的应用程序,我能够验证由我们同一租户下的客户端 (appId) Id 生成的不记名令牌。

现在我想验证其他一些外部租户令牌,该令牌也托管在 Azure 中,但与 Tenenat 不同..

我尝试通过联合凭据添加,但在生成访问代码时出现以下错误。

Attached the mapping which I have done in Azure. I am  not sure I am going in the right direction.

错误是:

Any Help on this is much appreciated

“error_description”:“AADSTS700222:AAD 发行的令牌不得用于联合身份流。 跟踪 ID:0154d231-b7d4-436c-9a5d-117d80460d00 相关 ID:0b9bd57f-6e20-4af9-961e-3f402345e707 时间戳: 2023-08-08 07:28:59Z",

azure asp.net-core authentication oauth-2.0 federated-identity
1个回答
0
投票

我发现下面的 Youtube 视频对这种情况很有帮助,

他已经清楚地解释了所有步骤。

https://www.youtube.com/watch?v=wZ0gCJYMUKI

© www.soinside.com 2019 - 2024. All rights reserved.