为使用 Azure AD B2C 进行身份验证的用户访问 LinkedIn API?

Access LinkedIn API for a user authenticated with Azure AD B2C?

用户通过 Azure AD B2C 在使用 Azure 移动服务的移动应用程序中登录并批准 LinkedIn 应用程序,LinkedIn API 是否有办法获取用户图像?

我似乎没有从 Azure AD B2C 获得任何信息。我能否以某种方式通过 Azure AD B2C 从 LinkedIn 获取令牌以在我的应用程序中使用它?

目前,Azure AD B2C 不支持向社交身份提供商请求任何额外的范围或信息。

Azure AD B2C 也无法为您提供社交 IdP 的令牌,以便您可以向社交 IdP 查询此信息。

您可以在 Azure AD B2C feedback forum or vote for an existing ask on the latter: Return social IdP's native access tokens back to the app

中请求前者

也就是说,您可以通过 Custom Policies. You would include profile-picture in the ClaimsEndpoint value of your policy (see this post for reference: ) and then map the picture-url claim from LinkedIn back to a custom claim 在 Azure AD B2C 中实现检索用户的 LinkedIn 图片。