-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with otp in scrape example #2483
Comments
Sorry, I am not very familiar with the scrape example. Hopefully someone else with more experience can comment on this issue. |
Thanks @gmlewis. I've created a wrapper using rsc.io/2fa as a temporary quickfix (some of the classes in scraping are outdated anyhow due to selectors having changed (e.g., setOTP := func(values url.Values) {
values.Set("otp", otpcode)
} Hopefully the above is useful, I can try and make a PR if you think the above flow makes sense, however waiting for someone else from the maintainers to comment on this. |
@gmlewis the code in the repo for the login part works fine. We don't need to register a separate 2fa as I mentioned in my previous comment all we need to do is when subscribing to github, before scanning the QR code select the text key option, and then get the secret key and pass that as an input for the OTP seed if that makes sense. Thus we would scan the QR code via the app, and use the secret key to bootstrap the OTP for any CLI use. Don't know why I had gotten confused previously about this as its actually in the comments in the code |
Hello,
I am trying to replicate the scrape example and if I use the OTP from an authenticator app (Google, Authy or otherwise) I get
panic: decode secret failed
, and if I use my yubikey I getreceived 422 response submitting otp form
. Anything I am missing on how otp should be passed?Thanks!
The text was updated successfully, but these errors were encountered: