Commit 6db8faa
authored
Wire scopes through VirtualMCPServer to auth middleware (#3005)
Complete the scopes support for VirtualMCPServer by wiring the Scopes
field through the vmcpconfig converter and auth factory:
- Map Scopes from oidc.OIDCConfig to vmcpconfig.OIDCConfig in converter
- Pass Scopes to TokenValidatorConfig in incoming auth factory
- Add test coverage for scopes in converter tests
This ensures scopes configured in VirtualMCPServer CRD are properly
advertised in the RFC 9728 well-known endpoint.
Fixes: #27831 parent 6355e13 commit 6db8faa
File tree
5 files changed
+29
-3
lines changed- cmd/thv-operator/pkg/vmcpconfig
- deploy/charts/operator-crds
- pkg/vmcp/auth/factory
5 files changed
+29
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1318 | 1341 | | |
1319 | 1342 | | |
1320 | 1343 | | |
| |||
1342 | 1365 | | |
1343 | 1366 | | |
1344 | 1367 | | |
| 1368 | + | |
1345 | 1369 | | |
1346 | 1370 | | |
1347 | 1371 | | |
| |||
1365 | 1389 | | |
1366 | 1390 | | |
1367 | 1391 | | |
| 1392 | + | |
1368 | 1393 | | |
1369 | 1394 | | |
1370 | 1395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
0 commit comments