Commit 2910b6b
feat: Add support for asynchronous
* chore: initial setup for async auth sessions api (#1571)
* chore: initial setup for async auth sessions api
* fix whitespace
* add init file
* update file names to aiohttp
* update import statement
* feat: Implement asynchronous timeout context manager (#1569)
* feat: implement async timeout guard
* add docstring
* clean whitespace
* update import file name
* add missing return statement
* update test cases
* update test cases
* include underlying timeout exception in trace
* avoid the cost of actual time
* feat: Implement asynchronous `AuthorizedSession` api response class (#1575)
* feat: implement asynchronous response class for AuthorizedSessions API
* check if aiohttp is installed and avoid tests dependency
* update content to be async
* update docstring to be specific to aiohttp
* add type checking and avoid leaking underlying API responses
* add test case for iterating chunks
* add read method to response interface
* address PR comments
* fix lint issues
* feat: Implement asynchronous `AuthorizedSession` api request class (#1579)
* feat: implement request class for asynchoronous AuthorizedSession API
* add type checking and address TODOs
* remove default values from interface methods
* aiohttp reponse close method must not be awaited
* cleanup
* update Request class docstring
* feat: Implement asynchronous `AuthorizedSession` class (#1580)
* feat: Implement Asynchronous AuthorizedSession class
* add comment for implementing locks within refresh
* move timeout guard to sessions
* add unit tests and code cleanup
* implement async exponential backoff iterator
* cleanup
* add testing for http methods and cleanup
* update number of retries to 3
* refactor test cases
* fix linter and mypy issues
* fix pytest code coverage
* fix: avoid leaking api error for closed session
* add error handling for response
* cleanup default values and add test coverage
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* cleanup: minor code cleanup (#1589)
* chore: Add aiohttp requirements test constraint. (#1566)
See #1565
for more information.
* chore(main): release 2.33.0 (#1560)
* chore(main): release 2.33.0
* fix: retry token request on retryable status code (#1563)
* fix: retry token request on retryable status code
* feat(auth): Update get_client_ssl_credentials to support X.509 workload certs (#1558)
* feat(auth): Update get_client_ssl_credentials to support X.509 workload certs
* feat(auth): Update has_default_client_cert_source
* feat(auth): Fix formatting
* feat(auth): Fix test__mtls_helper.py
* feat(auth): Fix function name in tests
* chore: Refresh system test creds.
* feat(auth): Fix style
* feat(auth): Fix casing
* feat(auth): Fix linter issue
* feat(auth): Fix coverage issue
---------
Co-authored-by: Carl Lundin <[email protected]>
Co-authored-by: Carl Lundin <[email protected]>
* chore: Update ECP deps. (#1583)
* chore(main): release 2.34.0 (#1574)
* cleanup: minor code cleanup
* fix lint issues
---------
Co-authored-by: Carl Lundin <[email protected]>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Andy Zhao <[email protected]>
Co-authored-by: Carl Lundin <[email protected]>
* update secrets from forked repo
---------
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: arithmetic1728 <[email protected]>
Co-authored-by: Carl Lundin <[email protected]>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Andy Zhao <[email protected]>
Co-authored-by: Carl Lundin <[email protected]>AuthorizedSession api (#1577)1 parent 6f75dd5 commit 2910b6b
File tree
9 files changed
+1187
-16
lines changed- google/auth
- aio/transport
- system_tests
- tests
- transport/aio
9 files changed
+1187
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
88 | 98 | | |
89 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
90 | 121 | | |
91 | 122 | | |
92 | 123 | | |
| |||
97 | 128 | | |
98 | 129 | | |
99 | 130 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 131 | + | |
105 | 132 | | |
106 | 133 | | |
107 | 134 | | |
108 | 135 | | |
109 | 136 | | |
110 | 137 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 138 | | |
116 | | - | |
117 | | - | |
118 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
119 | 164 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
0 commit comments