Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
com.microsoft.azure:msal4j-persistence-extension
Advanced tools
Implementation of ITokenCacheAccessAspect interface defined in Java MSAL SDK (artifactId - msal4j) for persistence of token cache in platform specific secret storage: * Win - file encrypted with DPAPI * Mac - key chain * Linux - key ring
Build | Reference Docs |
---|---|
MSAL Java reference |
The Microsoft Authentication Library for Java (MSAL4J) enables applications to integrate with the Microsoft identity platform. It allows you to sign in users or apps with Microsoft identities (Azure AD, Microsoft accounts and Azure AD B2C accounts) and obtain tokens to call Microsoft APIs such as Microsoft Graph or your own APIs registered with the Microsoft identity platform. It is built using industry standard OAuth2 and OpenID Connect protocols.
Quick links:
Getting Started | Home | Samples | Support | Feedback |
---|
The library supports the following Java environments:
Current version - 1.18.0
You can find the changes for each version in the change log.
You can get the com.microsoft.aad.msal4j package through Maven or Gradle.
Find the latest package in the Maven repository.
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>msal4j</artifactId>
<version>1.18.0</version>
</dependency>
implementation group: 'com.microsoft.azure', name: 'com.microsoft.aad.msal4j', version: '1.18.0'
MSAL4J supports multiple application types and authentication scenarios.
Refer the Wiki pages for more details on the usage of MSAL Java and the supported scenarios.
If your application is using ADAL for Java (ADAL4J), we recommend you to update to use MSAL4J. No new feature work will be done in ADAL4J.
See the ADAL to MSAL migration guide.
You can follow the latest updates and plans for MSAL Java in the Roadmap published on our Wiki.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com. When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
We provide a full suite of sample applications and documentation to help you get started with learning the Microsoft identity platform.
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 "msal" tag so we can see it! Here is the latest Q&A on Stack Overflow for MSAL: http://stackoverflow.com/questions/tagged/msal
We'd like your thoughts on this library. Please complete this short survey.
If you find a security issue with our libraries or services please report it to secure@microsoft.com 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.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
FAQs
Implementation of ITokenCacheAccessAspect interface defined in Java MSAL SDK (artifactId - msal4j) for persistence of token cache in platform specific secret storage: * Win - file encrypted with DPAPI * Mac - key chain * Linux - key ring
We found that com.microsoft.azure:msal4j-persistence-extension demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.