Troubleshoot login failed with login sequence
How to troubleshoot a failed login with a login sequence in Snyk API and Web
Last updated
Was this helpful?
How to troubleshoot a failed login with a login sequence in Snyk API and Web
In targets with authentication, Snyk API & Web must log in to reach areas reserved for authenticated users. If scans fail to log in using a login sequence for complex authentication flows, follow these troubleshooting steps.
When running scans on a target that uses a login sequence to complete a complex authentication flow, Snyk API & Web fails to log in.
Work through the following step to identify possible causes and solutions.
Verify the JSON of the login sequence is still valid.
Navigate to the Targets page.
Click the gear icon for the target to access settings.
Open the Authentication tab and review the LOGIN SEQUENCE configuration.
Download the JSON of the login sequence.
Open a browser, navigate to the target's URL, and follow the login flow.
On each step of the login flow:
Right-click and select Inspect to obtain the attributes or CSS selectors that identify the input fields.
Note those attributes or CSS selectors and the values used in the input fields.
In the JSON of the login sequence, validate the following:
The sequence follows the login flow.
The attributes or CSS selectors defined to identify the input fields are correct.
The values defined for use in the input fields are correct.
If the JSON does not reflect the login flow, Snyk API & Web cannot authenticate.
Check the following causes and solutions:
The login sequence does not follow the login flow.
Record a new login sequence and update it in target authentication. Visit Login sequence.
Input fields in the login sequence have incorrect attributes or CSS selectors.
Record a new login sequence and update it in target authentication. Visit Login sequence.
Input fields in the login sequence have incorrect values.
Record a new login sequence with correct credential values and update it in target authentication. Visit Login sequence.
After following these steps and applying the solutions, Snyk can log in to your target.
For more information, visit Configure authentication.
Last updated
Was this helpful?
Was this helpful?

