我正在尝试使用C#创建一个AAD应用程序。
我有两个选择,要么我可以使用:
我想知道选择方案1或备选方案2的利弊?
有人能给我一个洞察力吗。
发布于 2018-09-07 13:10:03
我知道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; }发布于 2018-09-06 07:16:32
这两个都可以用在你身上。但是Microsoft.Azure.Graph.RABC的版本是最新的,Microsoft.Azrue.ActiveDirectory.GraphClient的最新版本是2016年。
此外,微软强烈建议您使用MicrosoftGraph而不是Azure AD图API来访问Azure Active资源,因此建议您使用这。
有关Microsof图或Azure AD图的详细信息,您可以阅读这里。
https://stackoverflow.com/questions/52197495
复制相似问题