Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,107 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SASL and JAAS Implementations

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.

Features

  • 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.

Want to dive deeper? Ask DeepWiki

Getting Started

To quickly integrate this library into your Java project, follow these steps:

  1. Add the library to your project's dependency list.
  2. Initialize the SASL authentication mechanism.
  3. Configure the identity backend. A simple example is provided below to help you get started.

Detailed Usage

For detailed usage instructions and examples, refer to the Usage Guide.

Supported Identity Backends

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

pom.xml setup

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>

Build status

SonarCloud

Releases

Packages

Used by

Contributors

Languages