Commit 1365aaa
authored
feat: Add custom claims from Keycloak user token (#1917)
## What kind of change does this PR introduce?
This change will populate the `CustomClaims` field from the `Claims`
struct with 'other' claims from the Keycloak user token.
## What is the current behavior?
Currently only `Name`, `Sub`, `Email`, and `EmailVerified` are taken
from the Keycloak user token.
## What is the new behavior?
The "custom_claims" field in the retrieved JWT is populated.
## Additional context
* https://github.com/orgs/supabase/discussions/189091 parent 11d76aa commit 1365aaa
1 file changed
+40
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 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 | + | |
23 | 47 | | |
24 | 48 | | |
25 | 49 | | |
| |||
72 | 96 | | |
73 | 97 | | |
74 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
75 | 110 | | |
76 | 111 | | |
77 | 112 | | |
| |||
87 | 122 | | |
88 | 123 | | |
89 | 124 | | |
| 125 | + | |
90 | 126 | | |
91 | 127 | | |
92 | 128 | | |
| |||
0 commit comments