Commit 7b70fea
authored
feat: mTLS configuration via x.509 for asynchronous session in google-auth (#1959)
This pull request introduces support for Mutual TLS (mTLS) in the
asynchronous transport layer of the google-auth library. It enables
AsyncAuthorizedSession to automatically discover and utilize client
certificates for secure communication with Google Cloud APIs. See
[go/caa:x509-async-support](http://goto.google.com/caa:x509-async-support)
for details.
Please note: Only x.509 creds are in scope of this project currently.
Context aware or ECP credentials are not in scope of this project
currently.
This PR is second part of
googleapis/google-auth-library-python#1956
---------
Signed-off-by: Radhika Agrawal <agrawalradhika@google.com>1 parent 4d818b9 commit 7b70feaCopy full SHA for 7b70fea
6 files changed
+355-5Lines changed: 355 additions & 5 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages/google-auth
- google/auth/aio/transport
- tests/transport
- aio
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/google-auth/google/auth/aio/transport/aiohttp.py
Copy file name to clipboardExpand all lines: packages/google-auth/google/auth/aio/transport/aiohttp.py+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
121 | 121 | |
122 | 122 | |
123 | 123 | |
124 | | - |
| 124 | + |
125 | 125 | |
126 | 126 | |
127 | 127 | |
|
Collapse file
packages/google-auth/google/auth/aio/transport/mtls.py
Copy file name to clipboardExpand all lines: packages/google-auth/google/auth/aio/transport/mtls.py+61-1Lines changed: 61 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
| 20 | + |
20 | 21 | |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
21 | 26 | |
22 | 27 | |
23 | 28 | |
| ||
26 | 31 | |
27 | 32 | |
28 | 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 | + |
29 | 89 | |
30 | 90 | |
31 | 91 | |
| ||
44 | 104 | |
45 | 105 | |
46 | 106 | |
47 | | - |
| 107 | + |
48 | 108 | |
49 | 109 | |
50 | 110 | |
|
Collapse file
packages/google-auth/google/auth/aio/transport/sessions.py
Copy file name to clipboardExpand all lines: packages/google-auth/google/auth/aio/transport/sessions.py+103-2Lines changed: 103 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
| 24 | + |
24 | 25 | |
| 26 | + |
25 | 27 | |
26 | 28 | |
| 29 | + |
27 | 30 | |
28 | 31 | |
29 | 32 | |
30 | 33 | |
| 34 | + |
31 | 35 | |
32 | 36 | |
33 | 37 | |
34 | 38 | |
| 39 | + |
35 | 40 | |
36 | 41 | |
37 | 42 | |
| ||
133 | 138 | |
134 | 139 | |
135 | 140 | |
| 141 | + |
| 142 | + |
| 143 | + |
136 | 144 | |
137 | 145 | |
138 | 146 | |
139 | 147 | |
140 | 148 | |
141 | 149 | |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
142 | 223 | |
143 | 224 | |
144 | 225 | |
| ||
182 | 263 | |
183 | 264 | |
184 | 265 | |
185 | | - |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
186 | 273 | |
187 | 274 | |
188 | 275 | |
| 276 | + |
| 277 | + |
189 | 278 | |
190 | 279 | |
191 | 280 | |
192 | 281 | |
193 | 282 | |
194 | 283 | |
195 | 284 | |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | + |
| 289 | + |
196 | 290 | |
197 | 291 | |
198 | 292 | |
199 | 293 | |
200 | | - |
| 294 | + |
| 295 | + |
| 296 | + |
201 | 297 | |
202 | 298 | |
203 | 299 | |
| ||
468 | 564 | |
469 | 565 | |
470 | 566 | |
| 567 | + |
| 568 | + |
| 569 | + |
| 570 | + |
| 571 | + |
471 | 572 | |
472 | 573 | |
473 | 574 | |
|
Collapse file
packages/google-auth/noxfile.py
Copy file name to clipboardExpand all lines: packages/google-auth/noxfile.py+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
91 | 91 | |
92 | 92 | |
93 | 93 | |
94 | | - |
| 94 | + |
95 | 95 | |
96 | 96 | |
97 | 97 | |
|
Collapse file
packages/google-auth/tests/transport/aio/test_sessions_mtls.py
Copy file name to clipboard+123Lines changed: 123 additions & 0 deletions
| 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 | + |
0 commit comments