CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 04:24:57 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/isomorphic-git/isomorphic-git.git
etag: W/"c9f5023cfd0fbf15bbb298c4594e87d2"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=KOG91KcRNyr1D70Z%2BsmzpT4k6gQl0J1PZQab2sCAVjO06GkKd7HXPHDbFfDNYIQ%2FPYr3zrFyWqi2ANwlQQMohcQmoxKrGuvJU8dqo5wd3tDjyxaA5pU%2BXeevmEKy3L%2F9f6cq0n9xuVdmU5G2zAU4NcJEI8ItrraUacTvSHSWBOBDBtgWdsqjjkg%2BauAB1L7wAKFzrlc6GfQBKmZWTklZWUFD9yzFSOuPYxikJCar3NcnAYiDefG%2F2hjsRK9EkbqvVzUBB4aFIePrIokSS7%2FC4g%3D%3D--Rr1r8ron2%2FjGD4JM--uILSoFHihimT1%2FvLX%2By4Yw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.640079890.1752899096; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 04:24:56 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 04:24:56 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CADE:3DC509:9948E:D5B5A:687B1E18
feat(onAuth): remove OAuth2 variant, support raw HTTP headers, endles… · isomorphic-git/isomorphic-git@f51e489 · GitHub
Copy file name to clipboardExpand all lines: __tests__/test-hosting-providers.js
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 422
Commit f51e489
authored
feat(onAuth): remove OAuth2 variant, support raw HTTP headers, endless retry, canceling (#1054)
BREAKING CHANGE: The `token` and `oauth2format` properties have been removed from the GitAuth interface, which makes it much simpler and and eliminates a dozen GitErrors handling specific edge cases.
A `headers` property has been added to the GitAuth interface. This makes `onAuth` much more powerful because you can inject whatever HTTP headers you want.
The `onAuthFailed` callback now lets you return a GitAuth object. This means you can keep retrying to authenticate as many times as you like.
A `cancel` property has been added to the GitAuth interface. This means you gracefully give up authenticating and the function will throw an E.UserCancelledError instead of an E.HTTPError.1 parent 429fde1 commit f51e489Copy full SHA for f51e489
File tree
Expand file treeCollapse file tree
24 files changed
+440
-314
lines changedFilter options
- __tests__
- docs
- src
- api
- commands
- managers
- models
- utils
Expand file treeCollapse file tree
24 files changed
+440
-314
lines changed__tests__/test-hosting-providers.js
Copy file name to clipboardExpand all lines: __tests__/test-hosting-providers.js+4-3Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
154 |
| - | |
| 154 | + | |
| 155 | + | |
155 | 156 |
| |
156 | 157 |
| |
157 | 158 |
| |
| |||
163 | 164 |
| |
164 | 165 |
| |
165 | 166 |
| |
166 |
| - | |
| 167 | + | |
167 | 168 |
| |
168 | 169 |
| |
169 | 170 |
| |
| |||
181 | 182 |
| |
182 | 183 |
| |
183 | 184 |
| |
184 |
| - | |
| 185 | + | |
185 | 186 |
| |
186 | 187 |
| |
187 | 188 |
| |
|
+214-44Lines changed: 214 additions & 44 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
269 | 269 |
| |
270 | 270 |
| |
271 | 271 |
| |
| 272 | + | |
272 | 273 |
| |
273 | 274 |
| |
274 | 275 |
| |
| |||
279 | 280 |
| |
280 | 281 |
| |
281 | 282 |
| |
282 |
| - | |
283 |
| - | |
284 |
| - | |
285 |
| - | |
286 |
| - | |
287 |
| - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
288 | 286 |
| |
289 | 287 |
| |
290 | 288 |
| |
291 | 289 |
| |
292 | 290 |
| |
293 | 291 |
| |
294 | 292 |
| |
295 |
| - | |
296 |
| - | |
| 293 | + | |
297 | 294 |
| |
298 | 295 |
| |
299 | 296 |
| |
300 | 297 |
| |
301 | 298 |
| |
302 | 299 |
| |
303 |
| - | |
304 |
| - | |
| 300 | + | |
305 | 301 |
| |
306 | 302 |
| |
307 |
| - | |
308 |
| - | |
| 303 | + | |
309 | 304 |
| |
310 | 305 |
| |
311 |
| - | |
312 |
| - | |
313 |
| - | |
314 | 306 |
| |
315 |
| - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
316 | 313 |
| |
317 | 314 |
| |
318 |
| - | |
319 |
| - | |
320 |
| - | |
321 |
| - | |
322 |
| - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
323 | 322 |
| |
324 |
| - | |
| 323 | + | |
325 | 324 |
| |
| 325 | + | |
326 | 326 |
| |
327 | 327 |
| |
328 | 328 |
| |
| |||
333 | 333 |
| |
334 | 334 |
| |
335 | 335 |
| |
336 |
| - | |
337 |
| - | |
338 |
| - | |
339 | 336 |
| |
340 |
| - | |
341 |
| - | |
342 |
| - | |
343 |
| - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
344 | 340 |
| |
345 | 341 |
| |
346 | 342 |
| |
| |||
349 | 345 |
| |
350 | 346 |
| |
351 | 347 |
| |
352 |
| - | |
353 |
| - | |
| 348 | + | |
354 | 349 |
| |
355 | 350 |
| |
356 | 351 |
| |
357 | 352 |
| |
358 | 353 |
| |
359 | 354 |
| |
360 |
| - | |
361 |
| - | |
| 355 | + | |
362 | 356 |
| |
363 | 357 |
| |
364 |
| - | |
365 |
| - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
366 | 373 |
| |
367 | 374 |
| |
368 | 375 |
| |
369 | 376 |
| |
370 | 377 |
| |
371 | 378 |
| |
372 | 379 |
| |
373 |
| - | |
374 |
| - | |
375 |
| - | |
376 | 380 |
| |
377 |
| - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
378 | 387 |
| |
379 |
| - | |
| 388 | + | |
380 | 389 |
| |
381 |
| - | |
382 |
| - | |
383 |
| - | |
384 |
| - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
385 | 450 |
| |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
386 | 554 |
| |
| 555 | + | |
| 556 | + | |
387 | 557 |
| |
388 | 558 |
|
You can’t perform that action at this time.
0 commit comments