Testing rules
Learn how to test your rules with Authsignal’s convenient test action feature.
For convenience, Authsignal provides a way to create test actions without having to track them from within your application.
Getting there
Go to the Latest activity section of your action and you should see a Track a test action button.
Providing test data
Click the Track a test action button and a dialog will pop up where we can provide some test data. Authsignal provides default userId
, email
, deviceId
, userAgent
, and ipAddress
values but we encourage changing these to test different scenarios.
In the following example, we’ve added a custom data point withdrawalAmount
as we have a rule that requires user authentication when
the amount exceeds $500.
Tracking the action
Click Track action and you will see a breakdown of the action response.
Viewing the action details
Interestingly, despite our Withdrawing high amount of funds rule being triggered, the action state is Allowed.
The outcome of our rule was ignored because the user is not enrolled (they have not added any authentication methods).
As the user is not enrolled, the url
will instead take a user to Authsignal’s pre-built UI enrollment flow.
Enrolling the user
Let’s enroll the user we used in our test action by clicking the Pre-built UI enrollment URL link and add an authenticator through the pre-built UI.
Tracking another action after enrolling the user
Now, track another test action with the data we used previously. This time you should see that the action state is Challenge required.
Viewing the action details
If you want to see a full breakdown of a user action. Refresh the page and you should see the test action you just created in the
Latest activity table. Click View details
to see the full breakdown of the action.
A summary of some of the action details.
Was this page helpful?