Troubleshoot login failed with login form
How to troubleshoot a failed login with a login form in Snyk API and Web
Last updated
Was this helpful?
How to troubleshoot a failed login with a login form 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 form, follow these troubleshooting steps.
When running scans on a target with a login form, Snyk API & Web fails to log in.
Work through the following steps to identify possible causes and solutions.
Verify the credentials configured in target settings are 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 FORM configuration.
Note the login URL and credentials.
Open a browser and navigate to the target's login URL.
Attempt to log in with the current credentials.
If the login fails, check the following causes and solutions:
The credentials are invalid.
Obtain valid login credentials and update them in target settings. Visit Login form.
The credentials expired.
Obtain new login credentials and update them in target settings. Visit Login form.
Verify the login flow is still a login form.
Open a browser and navigate to the target's login URL.
Check if the login page displays a standard login form.
If the login is not a login form, the target authentication fails.
The login flow is not a login form but a complex login (for example, multi-step login).
Configure the target authentication to use a login sequence, which supports complex logins. Visit Login sequence.
Verify the field name values configured in target authentication.
Navigate to the Targets page.
Click the gear icon for the target to access settings.
Open the Authentication tab and review the LOGIN FORM configuration.
Note the FIELD NAME values for username and password fields.
Open a browser and navigate to the target's login URL.
Right-click and select Inspect to see the attributes of input fields on the login form.
Verify the FIELD NAME values contain a valid "id", "name", or CSS selector from the login form.
If the FIELD NAME values are not valid, Snyk API & Web cannot authenticate.
The FIELD NAME value does not contain a valid "id", "name", or CSS selector that identifies that input field in the login form.
Update the FIELD NAME value with the "id", "name", or CSS selector that uniquely identifies that input field in the login form. Visit Login form.
Check if a Web Application Firewall (WAF) is blocking access to the authentication page.
Open a browser in incognito mode and navigate to the target's URL.
Navigate to the authentication page with the login form.
Check if a WAF blocks access.
If a WAF blocks access to the authentication page, Snyk API & Web cannot authenticate.
A WAF is blocking access to the authentication page with the login form.
Add Snyk API & Web IPs to the WAF's allowlist. Visit Configure IPs in WAFs.
After following these steps and applying the solutions, scans can log in to your target.
For more information, visit Configure authentication.
Last updated
Was this helpful?
Was this helpful?

