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:b9f82a56-5151-c8d8-9773-782b7d9db642 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B88:2E83F4:6980545:8EE31ED:6A5E1ACE |
| html-safe-nonce | 78a7c0d4263892ba08cc2ff4d6c0cc1fca9d11026896e08a021de3407ad73029 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qjg4OjJFODNGNDo2OTgwNTQ1OjhFRTMxRUQ6NkE1RTFBQ0UiLCJ2aXNpdG9yX2lkIjoiNzYzMTEyOTM0MTYyMDc4NzkxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e90a239e90cd058f4c0299a6c93053bffa77f8461957dcb216a2752f33d6831d |
| 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 | 7a60e060dad2c24f72179d36247204b454da37845d1728020cd42046a433f87f |
| 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 | 0ae7f3ea7b1bb2f1f4623bb093bbf54cee05d830 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width