Commit 84599aa
feat: Log the flow.run_local_server redirect URL (#362)
When running this library in a headless environment, it's often the case
that `print` is not captured and delivered to the end user. By **also**
logging the `auth_url`, a user of this library could ensure that the
auth url reaches the logs.
---------
Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>1 parent f41f891 commit 84599aaCopy full SHA for 84599aa
2 files changed
+37Lines changed: 37 additions & 0 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages/google-auth-oauthlib
- google_auth_oauthlib
- tests/unit
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/google-auth-oauthlib/google_auth_oauthlib/flow.py
Copy file name to clipboardExpand all lines: packages/google-auth-oauthlib/google_auth_oauthlib/flow.py+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
447 | 447 | |
448 | 448 | |
449 | 449 | |
| 450 | + |
450 | 451 | |
451 | 452 | |
452 | 453 | |
|
Collapse file
packages/google-auth-oauthlib/tests/unit/test_flow.py
Copy file name to clipboardExpand all lines: packages/google-auth-oauthlib/tests/unit/test_flow.py+36Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
| 19 | + |
19 | 20 | |
20 | 21 | |
21 | 22 | |
| ||
460 | 461 | |
461 | 462 | |
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 | + |
0 commit comments