Step 4. Configure AM
To configure AM with the minimum configuration needed to authenticate a user, perform these tasks.
Create a realm
-
On the Realms page of the AM admin UI, click New Realm.
-
Enter
alpha
for the realm name and click Create.
Learn more in Realms.
Configure an authentication tree
Authentication trees provide fine-grained authentication by allowing multiple paths and decision points throughout the authentication flow.
Authentication trees are made up of authentication nodes, which define actions taken during authentication. Authentication nodes are granular, with each node performing a single task, such as collecting a username or making a simple decision. Authentication nodes can have multiple outcomes rather than just success or failure.
AM provides a number of sample authentication trees to demonstrate how nodes can be put together. Find information on setting up authentication trees in Configure trees. |
Follow these steps to create an authentication tree that you can use to log in to AM:
-
On the Realms page of the AM admin UI, select the
alpha
realm. -
Select Authentication > Trees from the menu on the left and click Create Tree.
-
Enter
myAuthTree
for the tree name and click Create.The authentication tree designer is displayed, with the
Start
entry point connected to theFailure
exit point, and aSuccess
node.The authentication tree designer provides the following features on the toolbar:
Authentication tree designer toolbar Button Usage Lay out and align nodes according to the order they are connected.
Toggle the designer window between normal and full-screen layout.
Remove the selected node. Note that the
Start
entry point cannot be deleted. -
Drag the following nodes from the Components panel on the left-hand side and drop them into the designer area:
The Data Store Decision authentication node uses the credentials to authenticate the user against the identity stores configured for the realm. In this example, the username and password are obtained by a combination of the Username Collector and Password Collector nodes.
-
Drag and drop the Username Collector and Password Collector onto the Page node, so that they will both appear on the same page when logging in.
-
Connect the nodes as follows:
You can configure the node properties by using the panel on the right side of the page. Find more information on the available properties for each node in Node reference.
Find more information on setting up more complex authentication trees in Configure trees.
Create a test user
Follow these steps to create a test user that you can use to log in to AM:
-
On the Realms page of the AM admin UI, select the
alpha
realm. -
Select Identities from the menu on the left and click Add Identity.
-
Create a test user with the following details and click Create.
- User ID
-
bjensen
- Password
-
Ch4ng31t
- Email address
-
bjensen@example.com
-
Add the following details and click Save Changes.
- First Name
-
Babs
- Last Name
-
Jensen
- Full Name
-
Babs Jensen
-
You’re now ready to authenticate your test user!
Proceed to Step 5. Authenticate to AM.