Commit 5a3422e
committed
fix(client): don't send client_id in token body under client_secret_basic
RFC 6749 section 2.3 requires that with HTTP Basic auth, client
credentials must not also appear in the request body. prepare_token_auth
stripped client_secret from the body for the client_secret_basic branch
but left client_id in, so strict token endpoints (Keycloak, Okta in
strict mode, and the RFC 6749 compliance test suite) reject the request
as presenting two authentication methods at once.
Fixes #3138
Two existing tests asserted the old behavior explicitly, updated both to
assert the corrected one, and added the same check to the refresh token
test for symmetry.
Signed-off-by: manjunathbhaskar <manjunathbhaskar854@gmail.com>1 parent 00a7014 commit 5a3422e
2 files changed
Lines changed: 12 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 | + | |
| 724 | + | |
719 | 725 | | |
720 | 726 | | |
721 | 727 | | |
| |||
0 commit comments