The Curity Identity Server has a built-in HTML Form Authenticator.
This example plugin provides a similar implementation using the Curity SDK.
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.
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.
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.
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:
- Authentication
- Create Account
- Activate Account
- Activate and Set Password
- Forgot Username
- Forgot Password
- Set Password
Follow the below steps to run this plugin in your own instances of the Curity Identity Server.
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.
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 JAR files to your instances of the Curity Identity Server, in a plugins subfolder:
$IDSVR_HOME/usr/share/plugins/usernamepasswordauthenticator/*.jar
In the Admin UI, create an instance of the Username Password Authenticator
to use in your applications:
- Read the Plugins Developer Guide for an overview of behavior
- Search the Curity Identity Server Plugin SDK to better understand SDK objects
- See the Plugin Code Examples for many existing plugins to compare against
Please visit curity.io for more information about the Curity Identity Server.