Setup a Username Authenticator
The most common login method is username and password. In Curity this is done by setting up a username and password authenticator. It uses a credential manager to verfiy the credentials, which in turn uses a data-source.
In this tutorial we setup a credential manager against the
main-ds data source that was defined in the First Configuration Tutorial.
The authenticator is added to the Authentication Profile that was created previously.
Open the Authentication profile by selecting the profile in the top level menu under Authentication.
Select the Authenticators page in the Authentication Profile.
Add new Authenticator
Click the New button. In the new page, enter a name for the authenticator, (eg. username). Scroll down and select the type HTML Form. In the bottom of the page click Next.
Add Credential Manager
The HTML Form authenticator needs a Credential Manager in order to verify credentials. If this is not configured yet click the Create button next to the credential manager dropdown.
Set Name for Credential Manager
The Credential Manager can be shared between components in Curity, and should have a name. Type a name and click Create.
Configure Credential Manager
The Credential Manager can handle many kinds of user stores. In this example we will use the
main-ds SQL data source that was created in the first config tutorial.
Set the following:
- Algorithm Type: We recommend hashing of passwords, if you don't know what to select use
- Data Source: Select the
main-dsin the dropdown
Commit the Changes
Commit the changes, in the Changes menu.
Optionally add a commit message.
The first authenticator is configured. It can now be used when moving on with OAuth and OpenID Connect, or any other integration the requires user authentication.