Repository navigation
Conversation
GoogleApps provider: Google now renders the device push number in a <samp jsname="feLNVc"> instead of a <div>, so the CLI no longer printed the number to tap. Match the jsname on any element and fall back to the element holding only the number in case the jsname changes. Browser provider: autofill waited for a visible password field, which never appears on the first page of multi-step logins like Google, and could be fooled by Google's aria-hidden password decoy. Fill the username first, submit, then wait for the password step. Fields are located directly instead of via Shift+Tab, and forms without a submit button are submitted with Enter before falling back to form.submit().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes for Google Workspace logins.
GoogleApps provider: number match not printed
When Google asks to tap a number on the phone (device push with number matching), the CLI printed no number. Google now renders it as
outside the
challengeform, while the code looked fordiv[jsname=feLNVc]. The selector now matches thejsnameon any element, and falls back to the element holding only the number (samp,b, or inside the challenge form) in case thejsnamechanges again.Browser provider: autofill doesn't work with Google
autoFillwaited for a visible password field before doing anything. Google shows the email first and the password on a second step, so autofill waited until timeout. Google's email page also contains anaria-hiddenhiddenPassworddecoy input.autoFillnow:Shift+Tabfrom the password field)form.submit()as beforeThis also helps with #1295 / #1363 style multi-step pages.
Testing
jsname.loginpage-multi-step.htmlfixture mimicking Google's identifier/password steps. It fails with the oldautoFill(timeout) and passes with the new one; the 3 existing fixtures still pass.go test ./...passes.