Commit a7191fa
committed
feat: add groups_claim support to oidc-auth plugin
Support custom JWT claim-to-groups mapping via groups_claim config.
This allows applications with their own role system (e.g. roles stored
in the app database, not IdP scopes) to leverage gateway-level ACL.
When groups_claim is set, x-auth-consumer-groups is populated from the
specified claim instead of the scope claim. Supports JSON Pointer
(RFC 6901) for nested claims like /realm_access/roles (Keycloak).
Optional groups_claim_separator handles string-valued claims.1 parent 34ff3ff commit a7191fa
3 files changed
Lines changed: 250 additions & 11 deletions
File tree
- docs/rulesets/functions
- plugins/oidc-auth
- src
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
| |||
0 commit comments