Commit 788fdfe
committed
feat: propagate kind + access_level as JWT claims in pgSettings
Adds jwt.claims.access_level and jwt.claims.kind to PostgreSQL session
settings so PG functions can read them via current_setting(). This lets
the DB layer make decisions based on credential type (api_key vs session)
and access level (read_write vs read_only) without additional lookups.1 parent 17dbfc3 commit 788fdfe
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
192 | 201 | | |
193 | 202 | | |
194 | 203 | | |
| |||
0 commit comments