Testing rules
Learn how to test your rules with Authsignal’s test action feature.
For convenience, Authsignal lets you create test actions directly in the portal, without having to track them from within your application.
How to test your rules
1. Start a test action
Go to the Latest activity tab of your action and click Track a test action button.
2. Add test data
A dialog will popup with default values for userId
, email
, deviceId
, userAgent
, and ipAddress
. You can change these to test different scenarios.
If you’re using a custom data points, you can add them here too .
3. Track the action
Click Track action and you will see a breakdown of the action response.
Understanding test results
Interestingly, despite our Withdrawing high amount of funds rule being triggered, the action state is Allowed.
Why did this happen?
The outcome of the rule was ignored because the user is not enrolled yet(they have not added any authentication methods).
What happens next?
Since the user isn’t enrolled, they’ll be sent to an enrollment page instead of a challenge. Click the Pre-built UI enrollment URL to set up authentication methods.
Now, track another test action with the data we used previously. This time you should see that the action state is Challenge required.
View 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.