我正在尝试将 Azure AD 凭据转换为 OAuth2 身份验证代码,最终转换为 token ,以便我可以向 REST 资源管理 API 发出请求。
Maven Central 当前有两个可用的工件:com.microsoft.aad/adal 和 com.microsoft.azure/adal4j。我已经下载了两者的 Javadoc,它们看起来非常相似,都使用 com.microsoft.aad 命名空间(分别在该命名空间中使用 adal 和 adal4j 包)。它们都是最近在同一天发布的,因此似乎没有一个已被弃用。它们似乎都导出类似的功能,但 adal4j 的导出量似乎要少得多(我认为这使得它看起来更像是面向用户的 API)。
这两个包有什么区别?
最佳答案
阅读 Maven 网站上两者的描述,我相信 com.microsoft.aad/adal
是 适用于 Android 应用程序的 Azure Active Directory 库
,而 com.microsoft .azure/adal4j
是用于 Java Web 应用的 Azure Active Directory 库
。
来自http://mvnrepository.com/artifact/com.microsoft.aad/adal/1.0.0
:
Azure active directory library for Android gives you the ability to add Windows Azure Active Directory authentication to your application with just a few lines of additional code. Using our ADAL SDKs you can quickly and easily extend your existing application to all the employees that use Windows Azure AD and Active Directory on-premises using Active Directory Federation Services, including Office365 customers.
来自http://mvnrepository.com/artifact/com.microsoft.azure/adal4j
:
Azure active directory library for Java gives you the ability to add Windows Azure Active Directory authentication to your web application with just a few lines of additional code. Using our ADAL SDKs you can quickly and easily extend your existing application to all the employees that use Windows Azure AD and Active Directory on-premises using Active Directory Federation Services, including Office365 customers.
关于java - com.microsoft.aad/adal 和 com.microsoft.azure/adal4j 之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37869021/