Commit 35af616
authored
feat(auth): implement regional access boundary support for standalone JWT and async service accounts (#17025)
This PR implements the following changes:
- Add RAB support to async service account and jwt credential types, by providing
async manager and fetching methods.
- Update unit tests to accept both mtls and standard lookup endpoint
urls.
- Refactor before_request to use a _after_refresh hook so we don't have
to override the method.
- Add RAb support for self signed jwt flow through jwt.py
- some small enhancements for test coverage and backward compatibility1 parent 4005e66 commit 35af616Copy full SHA for 35af616
30 files changed
+1,769-174Lines changed: 1769 additions & 174 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages/google-auth
- google
- auth
- compute_engine
- oauth2
- tests_async
- oauth2
- tests
- compute_engine
- oauth2
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/google-auth/google/auth/_credentials_async.py
Copy file name to clipboardExpand all lines: packages/google-auth/google/auth/_credentials_async.py+92Lines changed: 92 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
| 21 | + |
21 | 22 | |
22 | 23 | |
23 | 24 | |
| ||
64 | 65 | |
65 | 66 | |
66 | 67 | |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
67 | 74 | |
68 | 75 | |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
69 | 90 | |
70 | 91 | |
71 | 92 | |
| ||
169 | 190 | |
170 | 191 | |
171 | 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 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
| 257 | + |
| 258 | + |
| 259 | + |
| 260 | + |
| 261 | + |
| 262 | + |
| 263 | + |
Collapse file
packages/google-auth/google/auth/_helpers.py
Copy file name to clipboardExpand all lines: packages/google-auth/google/auth/_helpers.py+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
28 | 28 | |
29 | 29 | |
30 | 30 | |
| 31 | + |
| 32 | + |
31 | 33 | |
32 | 34 | |
33 | 35 | |
|
Collapse file
packages/google-auth/google/auth/_jwt_async.py
Copy file name to clipboardExpand all lines: packages/google-auth/google/auth/_jwt_async.py+17-1Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
| 47 | + |
| 48 | + |
47 | 49 | |
48 | 50 | |
49 | 51 | |
| ||
91 | 93 | |
92 | 94 | |
93 | 95 | |
94 | | - |
| 96 | + |
| 97 | + |
| 98 | + |
95 | 99 | |
96 | 100 | |
97 | 101 | |
| ||
142 | 146 | |
143 | 147 | |
144 | 148 | |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
145 | 157 | |
146 | 158 | |
147 | 159 | |
| ||
162 | 174 | |
163 | 175 | |
164 | 176 | |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
0 commit comments