简体   繁体   English

应用程序注册端点版本 2 的详细设置

[英]Detailed Setup for App Registration Endpoint Version 2

I followed the steps in the link below:我按照以下链接中的步骤操作:

https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-protect-backend-with-aad https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-protect-backend-with-aad

How to setup for the steps below?如何设置以下步骤? Please provide detailed steps.请提供详细步骤。

If you use v2 endpoints, use the scope you created for the backend-app in the Default scope field.如果您使用 v2 端点,请使用您在默认 scope 字段中为后端应用程序创建的 scope。 Also, make sure to set the value for the accessTokenAcceptedVersion property to 2 in your application manifest.此外,请确保在您的应用程序清单中将 accessTokenAcceptedVersion 属性的值设置为 2。 https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-protect-backend-with-aad#enable-oauth-20-user-authorization-in-the-developer-console https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-protect-backend-with-aad#enable-oauth-20-user-authorization-in-the-developer-安慰

To configure the application manifest: Reference配置应用程序清单: 参考

  1. Go to the Azure portal . Go 至Azure 门户 Search for and select the Azure Active Directory service.搜索 select Azure Active Directory 服务。
  2. Select App registrations. Select 应用程序注册。
  3. Select the app you want to configure. Select 您要配置的应用程序。
  4. From the app's Overview page, select the Manifest section.从应用程序的概述页面,select 清单部分。 A web-based manifest editor opens, allowing you to edit the manifest within the portal.基于 Web 的清单编辑器打开,允许您在门户中编辑清单。

For V2 endpoint set accessTokenAcceptedVersion to 2. That Specifies the access token,the version expected by the resource.对于 V2 端点,将 accessTokenAcceptedVersion 设置为 2。这指定了访问令牌,即资源所需的版本。

“accessTokenAcceptedVersion”: 2,   

And yes the changes apply to the backend app.是的,这些更改适用于后端应用程序。 Refer 参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM