Azure 哪个Nuget用于创建AAD应用程序?

Azure 哪个Nuget用于创建AAD应用程序?,azure,azure-active-directory,azure-ad-graph-api,Azure,Azure Active Directory,Azure Ad Graph Api,我正在尝试使用C#创建AAD应用程序 我有两个选择,我可以使用: 大会: Microsoft.Azure.ActiveDirectory.GraphClient 大会: Microsoft.Azure.Graph.RBAC 我想知道选择方案1或方案2的利弊 有人能给我提供一些见解吗。这两种方法都可以用于您。但的版本是最新的,最新的版本是2016年 此外,Microsoft强烈建议您使用Microsoft Graph,而不是访问Azure Active Directory资源,因此建议您

我正在尝试使用C#创建AAD应用程序

我有两个选择,我可以使用:

  • 大会:

    Microsoft.Azure.ActiveDirectory.GraphClient 
    
  • 大会:

    Microsoft.Azure.Graph.RBAC
    
  • 我想知道选择方案1或方案2的利弊


    有人能给我提供一些见解吗。

    这两种方法都可以用于您。但的版本是最新的,最新的版本是2016年

    此外,Microsoft强烈建议您使用Microsoft Graph,而不是访问Azure Active Directory资源,因此建议您使用


    有关Microsof Graph或Azure AD Graph的详细信息,您可以阅读。

    我知道Microsoft.Azure.Graph.RABC是最新的,但我仍然建议使用Microsoft.Azrue.ActiveDirectory.GraphClient,因为它在创建应用程序时包含更多参数。因此,您将有更多的自定义选项可用

            public IList<ExtensionProperty> ExtensionProperties { get; set; }
            public string SamlMetadataUrl { get; set; }
            public IList<RequiredResourceAccess> RequiredResourceAccess { get; set; }
            public IList<string> ReplyUrls { get; set; }
            public string RecordConsentConditions { get; set; }
            public bool? PublicClient { get; set; }
            public IList<PasswordCredential> PasswordCredentials { get; set; }
            public bool Oauth2RequirePostResponse { get; set; }
            public IList<OAuth2Permission> Oauth2Permissions { get; set; }
            public bool Oauth2AllowUrlPathMatching { get; set; }
            public bool Oauth2AllowImplicitFlow { get; set; }
            public string LogoutUrl { get; set; }
            public IList<Guid> KnownClientApplications { get; set; }
            public IList<KeyCredential> KeyCredentials { get; set; }
            public IList<string> IdentifierUris { get; set; }
            public string Homepage { get; set; }
            public string GroupMembershipClaims { get; set; }
            public string ErrorUrl { get; set; }
            public string DisplayName { get; set; }
            public bool? AvailableToOtherTenants { get; set; }
            public IList<AppRole> AppRoles { get; set; }
            public string AppId { get; set; }
            public IList<AddIn> AddIns { get; set; }
            public IList<DirectoryObject> Policies { get; set; }
            public IList<ServiceEndpoint> ServiceEndpoints { get; set; }
    
    公共IList扩展属性{get;set;} 公共字符串SamlMetadataUrl{get;set;} 公共IList RequiredResourceAccess{get;set;} 公共IList ReplyUrls{get;set;} 公共字符串条件{get;set;} 公共场所?PublicClient{get;set;} 公共IList密码凭据{get;set;} 公共bool OAuth2请求响应{get;set;} 公共IList Oauth2Permissions{get;set;} 公共bool Oauth2AllowUrlPathMatching{get;set;} 公共bool Oauth2AllowImplicitFlow{get;set;} 公共字符串LogoutUrl{get;set;} 公共IList KnownClientApplications{get;set;} 公共IList密钥凭据{get;set;} 公共IList标识符{get;set;} 公共字符串主页{get;set;} 公共字符串GroupMembershipClaims{get;set;} 公共字符串ErrorUrl{get;set;} 公共字符串DisplayName{get;set;} 公共场所?其他租户可用{get;set;} 公共IList程序{get;set;} 公共字符串AppId{get;set;} 公共IList加载项{get;set;} 公共IList策略{get;set;} 公共IList ServiceEndpoints{get;set;} 唯一的问题是支持RequiredResourceAccess参数作为应用程序创建的一部分。但在通过创建应用程序时,我找不到任何方法将RequiredResourceAccess作为参数传递。