简体   繁体   English

设置应用的已验证发布者 (Azure AD B2C),使其在用户同意提示中显示为已验证

[英]Set app’s verified publisher (Azure AD B2C) so that it shows up as verified in the user consent prompt

I set up sign-up and sign-in through a custom policy in Azure Active Directory B2C.我通过 Azure Active Directory B2C 中的自定义策略设置注册和登录。

I have 2 app registrations in the Azure AD B2C tenant:我在 Azure AD B2C 租户中有 2 个应用注册:

  1. a web application, which exposes an API一个 Web 应用程序,它公开了一个 API
  2. a Single-page application (SPA), which has been granted access to the API described above单页应用程序 (SPA),已被授予对上述 API 的访问权限

I don't have any app registration in my corp tenant, only in my B2C tenant.我的公司租户中没有任何应用程序注册,只有我的 B2C 租户中。

Everything works fine, but the application shows up as unverified in the user consent prompt: https://1drv.ms/u/s!AhEACHgzzcWq4jH6dbds5TaW6ylH?e=Y5aTvM and https://1drv.ms/u/s!AhEACHgzzcWq4jKH95a3JzBoojpU?e=kFLvPR一切正常,但应用程序在用户同意提示中显示为未经验证: https ://1drv.ms/u/s!AhEACHgzzcWq4jH6dbds5TaW6ylH?e=Y5aTvM 和https://1drv.ms/u/s!AhEACHgzzcWq4jKH95a3JzBoojpU?e =kFLvPR

To show it as verified, I:为了将其显示为已验证,我:

(from: https://docs.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-microsoft-account?pivots=b2c-custom-policy#verify-the-applications-publisher-domain ) (来自: https ://docs.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-microsoft-account?pivots=b2c-custom-policy#verify-the-applications-publisher-domain )

  1. verified my company's identity with Microsoft Partner Network (MPN)通过 Microsoft 合作伙伴网络 (MPN) 验证了我公司的身份
  2. am trying to complete the publisher verification process to associate my MPN account with my app registration我正在尝试完成发布者验证流程以将我的 MPN 帐户与我的应用注册相关联

The publisher domain of both apps is set to the primary verified custom domain of the tenant.两个应用程序的发布者域设置为租户的主要验证自定义域。

I am using Microsoft Graph to set my app's verified publisher:我正在使用 Microsoft Graph 来设置我的应用的经过验证的发布者:

POST /applications/<app-object-id>/setVerifiedPublisher
{
"verifiedPublisherId": "<my-MPN-id>"
}

But I get the following error message: “The MPN ID you provided does not exist, or you do not have access to it.但我收到以下错误消息:“您提供的 MPN ID 不存在,或者您无权访问它。 Please provide a valid MPN ID and try again.”.请提供有效的 MPN ID 并重试。”。 The MPN id I am using is the Global MPN ID.我使用的 MPN id 是 Global MPN ID。

This error is listed in the common issues in the documentation: https://docs.microsoft.com/en-us/azure/active-directory/develop/troubleshoot-publisher-verification#common-issues .此错误列在文档的常见问题中: https ://docs.microsoft.com/en-us/azure/active-directory/develop/troubleshoot-publisher-verification#common-issues。 Following the documentation, when I open the MPN tenant management page, the tenant where the app is registered in (the B2C tenant) is not on the list of the associated tenants.根据文档,当我打开 MPN 租户管理页面时,应用注册的租户(B2C 租户)不在关联租户列表中。 Only my corp tenant is on the list.只有我的公司租户在名单上。 However, even following the instructions in the documentation to associate a new tenant to the MPN account, I am not able to associate the B2C tenant.但是,即使按照文档中的说明将新租户关联到 MPN 帐户,我也无法关联 B2C 租户。 That process seems to be intended to associate Azure AD tenants to the MPN account, not Azure AD B2C tenants.该过程似乎旨在将 Azure AD 租户关联到 MPN 帐户,而不是 Azure AD B2C 租户。

How can I set my app's verified publisher so that it shows up as verified in the user consent prompt?如何设置我的应用的已验证发布者,使其在用户同意提示中显示为已验证?

Azure AD B2C tenants can be associated.可以关联 Azure AD B2C 租户。 Click the associate button and use your B2C (not your corp tenant) Global Admin credentials.单击关联按钮并使用您的 B2C(不是您的公司租户)全局管理员凭据。

Enjoy!享受!

• You might be facing this issue because the publisher domain might not be correctly verified as it should be like the custom domain whose DNS records have been verified in normal Azure AD tenant . • 您可能会遇到此问题,因为发布者域可能未正确验证,因为它应该与已在正常 Azure AD 租户中验证其 DNS 记录的自定义域一样 Thus, would suggest you to please check the custom domain verification in corresponding Azure AD tenant and similarly ensure that the domain is verified for your application in Azure AD B2C tenant according to the below documentation link: -因此,建议您检查相应 Azure AD 租户中的自定义域验证,并同样确保根据以下文档链接在 Azure AD B2C 租户中为您的应用程序验证域:-

https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-configure-publisher-domain#configure-publisher-domain-using-the-azure-portal https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-configure-publisher-domain#configure-publisher-domain-using-the-azure-portal

• Also, do ensure that you have global administrator privileges on the tenant in which your application is registered, and your user account is a global administrator in that tenant in which your application is registered. • 此外,请确保您对注册应用程序的租户具有全局管理员权限,并且您的用户帐户是注册应用程序的租户的全局管理员。 You should be an 'MPN Admin' or 'Accounts Admin' for your tenant.您应该是租户的“MPN 管理员”或“帐户管理员”。 You can verify that by signing on the below MPN management page : -您可以通过在以下 MPN 管理页面上签名来验证:-

https://partner.microsoft.com/dashboard/account/v3/tenantmanagement https://partner.microsoft.com/dashboard/account/v3/tenantmanagement

• And finally, when the above conditions are met, then using the graph API, mark the app as publisher verified by executing the below command with the verified MPN ID . • 最后,当满足上述条件时,使用图形 API,通过使用已验证的 MPN ID 执行以下命令,将应用程序标记为已验证的发布者 Ensure that you are logging into the Microsoft Graph API with the Global Administrator credentials and executing the command.确保您使用全局管理员凭据登录 Microsoft Graph API并执行命令。 Also do refer the below documentation for this purpose: -为此,请参阅以下文档:-

https://docs.microsoft.com/en-us/azure/active-directory/develop/troubleshoot-publisher-verification#making-microsoft-graph-api-calls https://docs.microsoft.com/en-us/azure/active-directory/develop/troubleshoot-publisher-verification#making-microsoft-graph-api-calls

   POST /applications/0cd04273-0d11-4e62-9eb3-5c3971a7cbec/setVerifiedPublisher 

  { 

    "verifiedPublisherId": "12345678" 

  }

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

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