Skip to content

curityio/username-password-authenticator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Username/Password Authenticator Plugin Example

Quality Availability

The Curity Identity Server has a built-in HTML Form Authenticator.
This example plugin provides a similar implementation using the Curity SDK.

Customization

The Branding and User Experience Resources provide example customizations.
In more advanced scenarios you may also want to take closer control over runtime behavior.
For these cases, you can use this repo as a starting point and adapt it as required.

Prerequisites

Before using this plugin you must be running version 9.2 or later of the Curity Identity Server.
Also ensure that you are using credential_mode=standard for your credential manager.
If you are using older credential storage, use v3.0 of this repo instead.

Example Deployment

An example deployment is provided that uses the plugin, with an example custom look and feel.
Behavior is largely the same as the built-in HTML Form authenticator, and covers the entire user journey.

Initial Screen

Behavior of Flows

A number of flows are available, to manage self sign-up, authentication and account recovery.
Each of these are described, with screenshots and plugin coding details, in the below documents:

Deploying the Plugin

Follow the below steps to run this plugin in your own instances of the Curity Identity Server.

Update Java Libraries

When deployed to the Curity Identity Server, the plugin will use shared Java libraries.
Identify the versions of these libraries that match your version of the Curity Identity Server.
This can be done by viewing the Service Provided Dependencies page for your version.
Then update the pom.xml file of this project with matching versions.

Build the JAR Files

Ensure that JDK 21 or later is installed, and also the maven build tool.
Then build the plugin code with this command:

mvn package

Next gather the following files from the target folder:

identityserver.plugins.authenticators.usernamepassword-*.jar
gson-*.jar
guava-*.jar
commons-lang*.jar

Deploy the JAR Files

Deploy JAR files to your instances of the Curity Identity Server, in a plugins subfolder:

$IDSVR_HOME/usr/share/plugins/usernamepasswordauthenticator/*.jar

Use the Plugin

In the Admin UI, create an instance of the Username Password Authenticator to use in your applications:

New Authenticator

SDK Links

Further Information

Please visit curity.io for more information about the Curity Identity Server.