This Java library is designed to provide a robust and easy-to-integrate solution for user authentication and authorization in various environments. Targeted at developers and system administrators, it simplifies implementing security protocols in Java applications.
- Supports a wide range of SASL mechanisms including PLAIN, CRAM-MD5, DIGEST-MD5, SCRAM-SHA-1, SCRAM-SHA-256, and SCRAM-SHA-512.
- Compatibility with multiple identity backends like Linux passwd files, htpasswd, and others.
- Implements the JAAS standard for authentication using various methods including UNIX, Apache Basic Auth, AWS Cognito, Auth0, and LDAP.
- Provides a generic ACL for resource access authorization.
To quickly integrate this library into your Java project, follow these steps:
- Add the library to your project's dependency list.
- Initialize the SASL authentication mechanism.
- Configure the identity backend. A simple example is provided below to help you get started.
For detailed usage instructions and examples, refer to the Usage Guide.
The library supports a variety of identity backends, enabling flexible integration with different systems. For each backend, specific configuration might be required. Below is a list of supported backends:
- Linux passwd files
- Apache htpasswd
- AWS-Cognito
- Auth0
- Ldap
- Easy to extend to other servers
All MapsMessaging libraries are hosted on the maven central server.
Include the dependency
<!-- Authentication module -->
<dependency>
<groupId>io.mapsmessaging</groupId>
<artifactId>AuthenticationLibrary</artifactId>
<version>1.0.4</version>
</dependency>