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:ebb01c81-8595-25a5-2e7e-21cd4816d153 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8216:31E746:42AC7CF:5D8A3AE:6A5FA98F |
| html-safe-nonce | 69175d86d5ee447e4a936ae9b241683e6e00a81b3ed084a99ec2ea5fe936b26f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjE2OjMxRTc0Njo0MkFDN0NGOjVEOEEzQUU6NkE1RkE5OEYiLCJ2aXNpdG9yX2lkIjoiMTQ5ODYzOTMxOTcyMDUwMzY5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1e04d7809b3d137be60fc6bffc2aff92addab729dff43b9a8a325ac74ad640ca |
| 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 | 9b835c054d57dfb6ce72ba8f0eb8f16f0370860631609eb10df818738c61c68d |
| 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 | 4df9bc0bde4bfd7cd95e75afdd7f103984ece3a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width