Title: 2 Step Authentication · Issue #323 · nodegit/nodegit · GitHub
Open Graph Title: 2 Step Authentication · Issue #323 · nodegit/nodegit
X Title: 2 Step Authentication · Issue #323 · nodegit/nodegit
Description: A little reminder for people who are using 2 step authentication (I lost a fair while to this 😞 ). You will not be able to use anything other than a SSH connection when using nodegit to operate remotely. If you're finding that any remote...
Open Graph Description: A little reminder for people who are using 2 step authentication (I lost a fair while to this 😞 ). You will not be able to use anything other than a SSH connection when using nodegit to operate rem...
X Description: A little reminder for people who are using 2 step authentication (I lost a fair while to this 😞 ). You will not be able to use anything other than a SSH connection when using nodegit to operate rem...
Opengraph URL: https://github.com/nodegit/nodegit/issues/323
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"2 Step Authentication","articleBody":"A little reminder for people who are using 2 step authentication (I lost a fair while to this :disappointed: ). **You will not be able to use anything other than a SSH connection when using nodegit to operate remotely**. If you're finding that any remote operations are just hanging, this is most likely the cause.\n\nExample:\n\n``` js\nvar nodegit = require('nodegit'),\n clone = nodegit.Clone.clone,\n userpassPlaintextNew = nodegit.Cred.userpassPlaintextNew,\n user = 'my-user-name',\n pass = 'a-very-secret-password', \n path = '/tmp/somewhere',\n options = {\n remoteCallbacks: {\n credentials: function () {\n return userpassPlaintextNew(user, pass);\n }\n }\n };\n\nfunction url() {\n var url = 'https://'\n url += encodeURIComponent(user);\n url += ':';\n url += encodeURIComponent(pass);\n url += '@github.com/some-user/some-project.git',\n return url;\n}\n\nclone(url(), path, options)\n .then(function (repo) {\n console.log('IF YOU\\'RE USING 2 STEP AUTH THIS WILL NEVER HAPPEN!');\n });\n```\n\nIt's very difficult for automated services to get by 2 step authentication...that's why it's there. I'd recommend using other credentials until there's support for some kind of manual intervention.\n","author":{"url":"https://github.com/johngeorgewright","@type":"Person","name":"johngeorgewright"},"datePublished":"2014-12-08T17:24:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/323/nodegit/issues/323"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:63025982-c98b-39cd-6bf3-ca38e1ae55f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90E0:A4600:473A19F:622902E:6A5E21E5 |
| html-safe-nonce | ced1ac19be3cb9cfeecaa61a07692de900a34716f7d35e55ed1d6876dd6e2b5f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEUwOkE0NjAwOjQ3M0ExOUY6NjIyOTAyRTo2QTVFMjFFNSIsInZpc2l0b3JfaWQiOiIyMjc3ODQwMDk0ODExMjY3NTU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 53094219b6be2243f079397b9a8c110cf348e35589607fa9b4e0b9b957fba487 |
| hovercard-subject-tag | issue:51327964 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodegit/nodegit/323/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3875b88e5345f250c9ed704bc6d20fbbefbeaa51f0b7f905f2c9fc69f3be8663/nodegit/nodegit/issues/323 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3875b88e5345f250c9ed704bc6d20fbbefbeaa51f0b7f905f2c9fc69f3be8663/nodegit/nodegit/issues/323 |
| og:image:alt | A little reminder for people who are using 2 step authentication (I lost a fair while to this 😞 ). You will not be able to use anything other than a SSH connection when using nodegit to operate rem... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johngeorgewright |
| hostname | github.com |
| expected-hostname | github.com |
| None | e5010f4d2748a3cbef86e1580413ff14701bd99f255268dfb4a2857c77e2cc7c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d23604c4a8ce0274b4c71bb2adbe6e1c9d5904f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width