如何使用主刷新令牌(PRT)在Azuread中检索访问令牌

发布于 2025-01-28 15:28:53 字数 63 浏览 4 评论 0 原文

是否可以在浏览器中使用Windows PRT接收访问令牌以从Web应用程序调用Azure受保护的Web API?

Is it possible to use a Windows PRT in browser to receive Access Token to call an Azure protected web API from a web app?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤寂小茶 2025-02-04 15:28:53

请检查中说

主要的刷新令牌(PRT)是Azure AD的关键伪像
Windows 10或更新的Windows Server 2016和以后的身份验证
版本,iOS和Android设备。 这是一个JSON Web令牌(JWT)
特别发放给Microsoft第一方代币经纪人以启用
在这些设备上使用的应用程序上的单登录(SSO)。

设备注册是Azure AD中基于设备身份验证的先决条件。 上向用户发出PRT。

仅在注册设备 /概念 - 主要 - 反复记录#钥匙供您“ rel =“ nofollow noreferrer”>关键注意事项

  1. 仅在本机应用程序身份验证 在浏览器会话期间未续订或发出prt。
  2. 当应用程序通过WAM请求令牌时,Azure AD会发出刷新
    令牌和访问令牌。

(我们知道访问令牌使客户能够安全地致电受保护的Web API,并且Web API使用 scenario-web-app-call-api ),但在浏览器会话期间未发出prt。

Azure AD WAM插件是一个基于WAM框架建立的Azure AD特定插件,它使SSO能够依靠Azure AD进行身份验证的应用程序。

Please check this concept of primary refresh token in Azure AD which says

A Primary Refresh Token (PRT) is a key artifact of Azure AD
authentication on Windows 10 or newer, Windows Server 2016 and later
versions, iOS, and Android devices. It is a JSON Web Token (JWT)
specially issued to Microsoft first party token brokers to enable
single sign-on (SSO) across the applications used on those devices.

Device registration is a prerequisite for device based authentication in Azure AD. A PRT is issued to users only on registered devices.

According to Key considerations

  1. A PRT is only issued and renewed during native app authentication.A PRT is not renewed or issued during a browser session.
  2. When an app requests token through WAM, Azure AD issues a refresh
    token and an access token.

(we know Access tokens enable clients to securely call protected web APIs, and are used by web APIs to perform authentication and authorization according to scenario-web-app-call-api) but PRT is not issued during browser session.

Azure AD WAM plugin is an Azure AD specific plugin built on the WAM framework, that enables SSO to applications that rely on Azure AD for authentication.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文