Commit 2feb760
committed
fix(cte): validate subject_token_type and actor_token, clarify act sourcing
Add local empty/whitespace guards for subject_token_type and actor_token so
they fail with a clear INVALID_TOKEN_FORMAT instead of a generic round-trip
error from the token endpoint, matching the existing subject_token check.
Add tests for both cases.
Document that response.act is read from the id_token and that Auth0 writes
the same act onto the access token (verified against the platform token
dialects), noting the access token may be opaque. Add a comment on the login
path noting act reaches the session user via UserClaims. Rename the refresh
test to reflect that it pins the state-merge behavior the refresh path uses.1 parent ee6bcdc commit 2feb760
3 files changed
Lines changed: 68 additions & 2 deletions
File tree
- examples
- src/auth0_server_python
- auth_server
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2251 | 2251 | | |
2252 | 2252 | | |
2253 | 2253 | | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
2254 | 2259 | | |
2255 | 2260 | | |
2256 | 2261 | | |
2257 | 2262 | | |
2258 | 2263 | | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
2259 | 2269 | | |
2260 | 2270 | | |
2261 | 2271 | | |
| |||
2444 | 2454 | | |
2445 | 2455 | | |
2446 | 2456 | | |
| 2457 | + | |
| 2458 | + | |
2447 | 2459 | | |
2448 | 2460 | | |
2449 | 2461 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3141 | 3141 | | |
3142 | 3142 | | |
3143 | 3143 | | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
3144 | 3196 | | |
3145 | 3197 | | |
3146 | 3198 | | |
| |||
3829 | 3881 | | |
3830 | 3882 | | |
3831 | 3883 | | |
3832 | | - | |
3833 | | - | |
| 3884 | + | |
| 3885 | + | |
3834 | 3886 | | |
3835 | 3887 | | |
3836 | 3888 | | |
| |||
0 commit comments