Commit e18fbd0
SpiliosDmk
fix(client): don't send client_id in token body under client_secret_basic
RFC 6749 §2.3: with HTTP Basic auth, client credentials must not also
appear in the request body. prepare_token_auth() already stripped
client_secret for client_secret_basic but left client_id in, so strict
token endpoints (Keycloak, Okta strict mode) saw two authentication
methods in one request and rejected it. Strip client_id too.
Two existing tests asserted the old behavior explicitly (client_id
present in the body) -- updated them to assert its absence instead.
Fixes #31381 parent 837ef90 commit e18fbd0
2 files changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
683 | | - | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
684 | 687 | | |
685 | 688 | | |
686 | 689 | | |
| |||
716 | 719 | | |
717 | 720 | | |
718 | 721 | | |
| 722 | + | |
| 723 | + | |
719 | 724 | | |
720 | 725 | | |
721 | 726 | | |
| |||
0 commit comments