When a build signs in
A build tries its task signed out first, even when you give it a login. It signs in only when the task needs an account or the site shows a sign-in wall, and the finished tool then requires a login. A tool built signed out never does. A cart tool, such as one that adds to the cart, signs in, since its cart belongs to the account; one that fills the cart and checks out in the same run may use the site’s guest checkout. To make a build sign in first, setforce_sign_in to true; the tool then always signs in.
Which login it uses
- A login you name: pass
login_idto use one saved login. - The site’s saved login: the build uses the one saved login, or asks which when several could sign in.
- A login the person enters: with none saved, the job asks on its answer page, which can save the login too.
answer_url and keep waiting. See Answer a job’s questions.
When the website rejects a login
The job reportsneeds_input with the error credentials_rejected, and waits up to 60 minutes for someone who can edit that login to correct it. It then resumes as the same job; don’t start the build again.
Details
Details
- You can pass a
logininline instead, but its values pass through your client and its model provider. The answer page keeps them out of the conversation. - A build that may have changed the website before its login was rejected says so with
error.details.possible_commit. When it resumes, it checks the website first and never repeats a change that happened. - Sign-in codes are covered in two-factor sign-in.