Commit 6044a9c
fix(user_management): honor client_id override in get_authorization_url_with_pkce
Fixes #700. get_authorization_url_with_pkce accepted a client_id
argument and silently ignored it — the URL always carried the client's
configured client_id, while its PKCE sibling authenticate_with_code_pkce
honored the override, so multi-tenant callers got an authorization URL
for one application and a token exchange for another.
The generated get_authorization_url (user_management and sso) now
accepts an optional client_id override that falls back to the client's
configured value (regenerated from oagen-emitters), and the PKCE
wrapper forwards it in both the sync and async clients.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent d94f9f8 commit 6044a9c
3 files changed
Lines changed: 38 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| |||
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| 198 | + | |
196 | 199 | | |
197 | 200 | | |
198 | 201 | | |
| |||
207 | 210 | | |
208 | 211 | | |
209 | 212 | | |
210 | | - | |
| 213 | + | |
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
| |||
565 | 568 | | |
566 | 569 | | |
567 | 570 | | |
| 571 | + | |
568 | 572 | | |
569 | 573 | | |
570 | 574 | | |
| |||
584 | 588 | | |
585 | 589 | | |
586 | 590 | | |
| 591 | + | |
587 | 592 | | |
588 | 593 | | |
589 | 594 | | |
| |||
613 | 618 | | |
614 | 619 | | |
615 | 620 | | |
| 621 | + | |
616 | 622 | | |
617 | 623 | | |
618 | 624 | | |
| |||
627 | 633 | | |
628 | 634 | | |
629 | 635 | | |
630 | | - | |
| 636 | + | |
631 | 637 | | |
632 | 638 | | |
633 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| 568 | + | |
568 | 569 | | |
569 | 570 | | |
570 | 571 | | |
| |||
587 | 588 | | |
588 | 589 | | |
589 | 590 | | |
| 591 | + | |
590 | 592 | | |
591 | 593 | | |
592 | 594 | | |
| |||
619 | 621 | | |
620 | 622 | | |
621 | 623 | | |
| 624 | + | |
622 | 625 | | |
623 | 626 | | |
624 | 627 | | |
625 | 628 | | |
626 | | - | |
| 629 | + | |
627 | 630 | | |
628 | 631 | | |
629 | 632 | | |
| |||
2373 | 2376 | | |
2374 | 2377 | | |
2375 | 2378 | | |
| 2379 | + | |
2376 | 2380 | | |
2377 | 2381 | | |
2378 | 2382 | | |
| |||
2924 | 2928 | | |
2925 | 2929 | | |
2926 | 2930 | | |
| 2931 | + | |
2927 | 2932 | | |
2928 | 2933 | | |
2929 | 2934 | | |
| |||
2946 | 2951 | | |
2947 | 2952 | | |
2948 | 2953 | | |
| 2954 | + | |
2949 | 2955 | | |
2950 | 2956 | | |
2951 | 2957 | | |
| |||
2978 | 2984 | | |
2979 | 2985 | | |
2980 | 2986 | | |
| 2987 | + | |
2981 | 2988 | | |
2982 | 2989 | | |
2983 | 2990 | | |
2984 | 2991 | | |
2985 | | - | |
| 2992 | + | |
2986 | 2993 | | |
2987 | 2994 | | |
2988 | 2995 | | |
| |||
4732 | 4739 | | |
4733 | 4740 | | |
4734 | 4741 | | |
| 4742 | + | |
4735 | 4743 | | |
4736 | 4744 | | |
4737 | 4745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
97 | 110 | | |
98 | 111 | | |
99 | 112 | | |
| |||
112 | 125 | | |
113 | 126 | | |
114 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
115 | 135 | | |
116 | 136 | | |
117 | 137 | | |
| |||
0 commit comments