![](/img/trans.png)
[英]Is it possible to use impersonated access token within non-interactive session to get new access token to other Audience in Azure Active Directory?
[英]How to exchange Azure Active Directory access token with one audience for another
我想知道在 C# 中使用 MSAL.NET 时,是否可以与一个受众交换访问令牌以获得另一个受众的访问令牌。
我有一个应用程序获取访问令牌作为输入。 该令牌适用于https://management.core.windows.net/的观众。 在此应用程序中,我将需要访问其他一些 azure 资源,例如https://vault.azure.net和/或https://database.windows 。 是否可以使用 MSAL.NET 与其他受众交换提供的令牌?
如果 MSAL.NET 无法做到这一点,那么还有哪些其他选项可以做到这一点?
不幸的是,这是不可能的。
不仅在 MSAL.NET 中,而且在整个 Azure AD 中,都没有这样的方法可以将访问令牌与一个受众交换为另一个受众的访问令牌。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.