TentyAll guides

Login walk

Your users sign in before they do anything that pays the bills. Tenty signs in too, on every scan, with a test user you hand over, so a deploy that breaks sign-in reaches you before the support inbox does.

What it is

You give the path of your login page, like /login, and a line the page after sign-in shows, like "Your projects". Tenty opens the login page in Chromium, fills the email and password of the test user of the app (the same one the access matrix uses, set on the Database tab), presses the sign-in button and reads the page it lands on. It keeps a screenshot of that page.

Then it opens the key pages you marked as behind sign-in in the same session, with the same checks as every key page: error answers, blank screens, missing text, page errors and page speed.

Why it matters

Sign-in breaks quietly. A renamed field, an auth callback that points at the preview domain, a cookie set for the wrong host: the login page still answers 200, so uptime checks stay green, while every user who tries to sign in lands back on the form.

How Tenty checks it

The walk runs with every scan of a verified domain: the daily scan, a scan you start, and the round after each deploy, planned rounds included.

  • Sign-in fails: after the sign-in button the page lacks the line you gave. The finding names the page the browser landed on, lists the requests from the sign-in button to that page with method, path and answer, and the cookies they set with their domain and flags. Cookie values and query strings stay out. High.
  • Login page error: the login page answers 400 or higher, or fails to load within 20 seconds. High.

Tenty looks for the email field by type, name and autocomplete, and for the password field by type, then waits up to 10 seconds for the page to move on. A form behind a CAPTCHA, a sign-in made of social buttons alone and a two step form stay out of reach, and the card on the Monitors tab says which one it met. Your robots.txt is obeyed on the login page too. Use an account made for testing, with the role of a regular user, since the walk signs in as it on every scan.

How to fix it

Sign in by hand with the test user, with the browser console and the network tab open. Read the answer of the sign-in request: a 400 or 401 points at the auth call, a redirect back to the login page points at the session cookie or the auth callback address. Compare the form with the screenshot on the finding, a renamed field shows up there.

How to reproduce

curl -sS -o /dev/null -w '%{http_code}\n' 'https://YOUR-APP/login'

This shows the answer code of the login page. The sign-in itself needs a browser: open the login page in a private window and sign in with the test user.