Clinic · vets
The clinic's old app asks for a login.
Its vets must be read, every night.
Spring PetClinic behind Tomcat's login
The problem
No API token.
- A form, a password.
- Then a session cookie.
What is not changed
The app stays as it is.
- The login is the server's.
- The account is a clinic account.
Without auth
The server answers its login page.
- With 200, in HTML.
- The hub refuses it: it is not data.
What had to be written
auth: { kind: session }The hub logs in like a user.
- 6 vets.
- A 30-line connector.
The restart
The app restarts, the session is lost.
- The hub logs in again on its own, once.
- The run reads the 6 vets.
The limit
A plain form.
- No JavaScript login.
- No second factor.
Try it
The scenario replays locally.
Every step is published with its output.