Title: docs are wrong about cloneOpts.remoteCallback · Issue #35 · nodegit/nodegit.github.com · GitHub
Open Graph Title: docs are wrong about cloneOpts.remoteCallback · Issue #35 · nodegit/nodegit.github.com
X Title: docs are wrong about cloneOpts.remoteCallback · Issue #35 · nodegit/nodegit.github.com
Description: referring to http://www.nodegit.org/guides/cloning/gh-two-factor/ The docs tell me that I should use the following options object for cloning with oauth. cloneOptions.remoteCallbacks = { certificateCheck: function() { return 1; }, creden...
Open Graph Description: referring to http://www.nodegit.org/guides/cloning/gh-two-factor/ The docs tell me that I should use the following options object for cloning with oauth. cloneOptions.remoteCallbacks = { certificat...
X Description: referring to http://www.nodegit.org/guides/cloning/gh-two-factor/ The docs tell me that I should use the following options object for cloning with oauth. cloneOptions.remoteCallbacks = { certificat...
Opengraph URL: https://github.com/nodegit/nodegit.github.com/issues/35
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docs are wrong about cloneOpts.remoteCallback","articleBody":"referring to http://www.nodegit.org/guides/cloning/gh-two-factor/\nThe docs tell me that I should use the following options object for cloning with oauth.\n\n```\ncloneOptions.remoteCallbacks = {\n certificateCheck: function() { return 1; },\n credentials: function() {\n return NodeGit.Cred.userpassPlaintextNew(GITHUB_TOKEN, \"x-oauth-basic\");\n }\n};\n```\n\nHowever that doesn't work and isn't what is in the tests.\nI ended up using something like \n\n```\nvar cloneOptions = {\n fetchOpts: {\n callbacks: {\n certificateCheck: function() { return 1; },\n credentials: function() {\n console.log(token);\n return nodegit.Cred.userpassPlaintextNew(token, 'x-oauth-basic');\n }\n }\n }\n };\n```\n","author":{"url":"https://github.com/calebTomlinson","@type":"Person","name":"calebTomlinson"},"datePublished":"2015-12-01T21:56:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/35/nodegit.github.com/issues/35"}
| 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:53e3d63d-d0eb-0f79-6033-66bfd07c403d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1BA:A458E:2691B81:363BD3A:6970FC11 |
| html-safe-nonce | e6feec78ec49054d8b65a1c2854918c7022742bdf9039b6336a6c18d389cdb59 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUJBOkE0NThFOjI2OTFCODE6MzYzQkQzQTo2OTcwRkMxMSIsInZpc2l0b3JfaWQiOiI2ODM5NTk2MjE2NDYzOTgxNTg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 710bb39c49542cb81133a5349106d8050869f2df61d52935a5e28d79d6edd2ef |
| hovercard-subject-tag | issue:119817006 |
| 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.github.com/35/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45c62e532cc6452de98c321be61622bcd695e994909f83c1073667a818ef6030/nodegit/nodegit.github.com/issues/35 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45c62e532cc6452de98c321be61622bcd695e994909f83c1073667a818ef6030/nodegit/nodegit.github.com/issues/35 |
| og:image:alt | referring to http://www.nodegit.org/guides/cloning/gh-two-factor/ The docs tell me that I should use the following options object for cloning with oauth. cloneOptions.remoteCallbacks = { certificat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | calebTomlinson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b239ebed690c3053869ff31a3b7597834c25673659d63e7b6fd6a9b5d7853de |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit.github.com git https://github.com/nodegit/nodegit.github.com.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1462352 |
| octolytics-dimension-repository_nwo | nodegit/nodegit.github.com |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1462352 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit.github.com |
| 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 | aeacfd55297f3de5395c83f200ac35d1f474115e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width