Commit eaf1b64
committed
The jwt-bearer grant confuses the internal (mapped) authorities(scopes) from the incoming(external) groups
The way the flow should work is
1. Extract external groups via the external_groups attribute mapping
2. Filter the external groups via the external group white list (Note #1)
3. Store the filtered external groups (external authorities)
4. Map the filtered external groups to scope, and store the scopes (authorities)
Note #1
For LDAP, and empty whitelist means no external groups are allowed
For SAML and OAUTH/OIDC an empty whitelist means all external groups are allowed1 parent ba4b3f1 commit eaf1b64
2 files changed
Lines changed: 15 additions & 4 deletions
File tree
- server/src
- main/java/org/cloudfoundry/identity/uaa/provider/oauth
- test/java/org/cloudfoundry/identity/uaa/provider/oauth
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
| |||
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | | - | |
| 287 | + | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
| |||
358 | 360 | | |
359 | 361 | | |
360 | 362 | | |
361 | | - | |
| 363 | + | |
362 | 364 | | |
363 | 365 | | |
364 | 366 | | |
| |||
975 | 977 | | |
976 | 978 | | |
977 | 979 | | |
| 980 | + | |
978 | 981 | | |
979 | 982 | | |
980 | 983 | | |
| |||
1008 | 1011 | | |
1009 | 1012 | | |
1010 | 1013 | | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1011 | 1022 | | |
1012 | 1023 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| |||
0 commit comments