azure - 应用程序和用户的 AAD AppRoles allowedMemberTypes

标签 azure azure-active-directory manifest

根据Add app roles in your application and receive them in the token ,我可以为用户、应用程序或两者创建一个 AppRole

如果我想定位用户,Manifest 上的属性 allowedMemberTypes 应为 User。对于应用程序,Application,但是两者呢?

两者的allowedMemberTypes是什么?

最佳答案

allowedMemberTypes 是一个数组,因此您可以同时放入“User”和“Application”:

"appRoles": [
  {
    "allowedMemberTypes": [
      "User", "Application"
    ],
    "displayName": "Writer",
    "id": "d1c2ade8-98f8-45fd-aa4a-6d06b947c66f",
    "isEnabled": true,
    "description": "Writers Have the ability to create tasks.",
    "value": "Writer"
  }
],

关于azure - 应用程序和用户的 AAD AppRoles allowedMemberTypes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57400122/

相关文章:

azure-active-directory - Azure AD B2C 登录名

android - 为什么以编程方式设置主题会产生与通过 list 不同的结果?

azure - 无法通过 Azure 通信服务并使用登录用户的凭据从本地计算机发送电子邮件

java - 使用maven-shade-plugin时如何将DefaultImplementationEntries添加到MANIFEST?

android - 无法解析符号 Manifest.permission.READ_PHONE_STATE

c# - "Server cannot accept argument"Azure VM 中 IIS 中的 FTP 服务器引发异常

Azure DevOps : Monorepo trigger

wcf - 在 Windows Azure 中部署 WCF : One or more role instances are unhealthy. 回收..未处理的异常 : System. NullReferenceException?

azure - SignalR 与 Azure 的连接不起作用(.net core 3.1)

c# - 使用 Microsoft Graph 重置用户密码