java - com.microsoft.aad/adal 和 com.microsoft.azure/adal4j 之间有什么区别?

标签 java azure adal

我正在尝试将 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/

相关文章:

java - 从 jar 中提取后可执行文件将无法运行

java - 如何从 java 代码在 jboss cli 中启动嵌入式服务器?

azure - 我们需要一种方法,在 azure 上成功更改密码后将用户重定向回我们的应用程序

azure - OAuth 2.0 授权码授予无 secret

java - 为什么将 (EditText) findViewById 转换为 (EditText)?

java - ADFm 以外的任何 JSR 227 实现?

azure - 使用 Terraform 安装 AKS 时获取不受支持的 block 类型

.net - 尝试通过 dotnetpublish 命令发布 azure 函数

azure - AcquireTokenSilentAsync 会在 90 天后不起作用吗?

azure - ADAL 是否支持 PCL 配置文件 259?