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.

License

License

MIT License
GroupId

GroupId

com.microsoft.azure
ArtifactId

ArtifactId

adal4j
Last Version

Last Version

1.6.7
Release Date

Release Date

Type

Type

jar
Description

Description

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.
Project URL

Project URL

https://github.com/AzureAD/azure-activedirectory-library-for-java
Source Code Management

Source Code Management

https://github.com/AzureAD/azure-activedirectory-library-for-java.git

Download adal4j

How to add to project

<!-- https://jarcasting.com/artifacts/com.microsoft.azure/adal4j/ -->
<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>adal4j</artifactId>
    <version>1.6.7</version>
</dependency>
// https://jarcasting.com/artifacts/com.microsoft.azure/adal4j/
implementation 'com.microsoft.azure:adal4j:1.6.7'
// https://jarcasting.com/artifacts/com.microsoft.azure/adal4j/
implementation ("com.microsoft.azure:adal4j:1.6.7")
'com.microsoft.azure:adal4j:jar:1.6.7'
<dependency org="com.microsoft.azure" name="adal4j" rev="1.6.7">
  <artifact name="adal4j" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.microsoft.azure', module='adal4j', version='1.6.7')
)
libraryDependencies += "com.microsoft.azure" % "adal4j" % "1.6.7"
[com.microsoft.azure/adal4j "1.6.7"]

Dependencies

compile (5)

Group / Artifact Type Version
com.nimbusds : oauth2-oidc-sdk jar 9.4
com.google.code.gson : gson jar 2.8.0
org.slf4j : slf4j-api jar 1.7.21
commons-codec : commons-codec jar 1.14
org.apache.commons : commons-lang3 jar 3.5

provided (1)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 4.0.1

test (4)

Group / Artifact Type Version
org.testng : testng jar 7.1.0
org.powermock : powermock-module-testng jar 2.0.0
org.powermock : powermock-api-easymock jar 2.0.0
org.easymock : easymock jar 4.0.2

Project Modules

There are no modules declared in this project.

This library, ADAL for Java, will no longer receive new feature improvements. Instead, use the new MSAL4J.

  • If you are starting a new project, you can get started with the MSAL4J docs for details about the scenarios, usage, and relevant concepts.
  • If your application is using the previous ADAL for Java library, you can follow this migration guide to update to MSAL4J.
  • Existing applications relying on ADAL for Java will continue to work.

Microsoft Azure Active Directory Authentication Library (ADAL) for Java

master branch dev branch Reference Docs
Build Status Build Status Javadocs
Getting Started Docs Samples Support Feedback

The ADAL for Java library enables Java applications to authenticate with Azure AD and get tokens to access Azure AD protected web resources.

Update to MSAL4J now!

MSAL4J is the new authentication library to be used with the Microsoft identity platform.

Building on top of ADAL, MSAL works with both the Open ID Connect certified Azure AD V2 endpoint and the new social identity solution from Microsoft, Azure AD B2C.

ADAL4J is in maintenance mode and no new features will be added going forward except for security fixes. All our ongoing efforts will be focused on improving MSAL4J.

Installation and usage

You can find the steps for installation and basic usage documented in the ADAL4J Basics Wiki.

Versions

Current version - 1.6.7

Minimum recommended version - 1.6.7

From version 1.3.0 support for handling Conditional Access claims challenge was added. You can read about CA here and refer this sample to handle it.

You can find the changes for each version in the change log.

Contribution

All code is licensed under the MIT License and we triage actively on GitHub. We encourage and welcome contributions to the library. Please read the contributing guide before starting.

Build and Run

Refer this page for information on building the project and running tests.

Samples and Documentation

Refer these code samples using ADAL4J in some basic scenarios.

We also provide a full suite of sample applications and documentation to help you get started with learning the Azure Identity system. This includes tutorials for native clients such as Windows, Windows Phone, iOS, macOS, Android, and Linux. We also provide full walkthroughs for authentication flows such as OAuth2, OpenID Connect, Graph API, and other awesome features.

Community Help and Support

We leverage Stack Overflow to work with the community on supporting Azure Active Directory and its SDKs, including this one! We highly recommend you ask your questions on Stack Overflow (we're all on there!) Also browser existing issues to see if someone has had your question before.

We recommend you use the "adal" tag so we can see it! Here is the latest Q&A on Stack Overflow for ADAL: http://stackoverflow.com/questions/tagged/adal

Submit Feedback

We'd like your thoughts on this library. Please complete this short survey.

Security Reporting

If you find a security issue with our libraries or services please report it to [email protected] with as much detail as possible. Your submission may be eligible for a bounty through the Microsoft Bounty program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly upon receiving the information. We encourage you to get notifications of when security incidents occur by visiting this page and subscribing to Security Advisory Alerts.

We Value and Adhere to the Microsoft Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

com.microsoft.azure

Azure Active Directory

Versions

Version
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
0.0.3