Commit f8d478c
Olivier Gintrand
feat: expose token_endpoint_auth_method in gateway admin UI
Add a dropdown to the gateway add and edit forms allowing admins to
select between client_secret_post (default) and client_secret_basic
for the OAuth2 token endpoint authentication method (RFC 6749 Section
2.3).
Some OAuth providers (e.g. Freshworks/Freshservice) require
client_secret_basic (HTTP Basic Auth header) rather than the default
client_secret_post (credentials in POST body). Without this UI field,
reconfiguring a gateway through the admin panel silently drops the
token_endpoint_auth_method setting, causing token exchange failures.
Changes:
- admin.py: Read oauth_token_endpoint_auth_method from form data in
both admin_add_gateway and admin_edit_gateway
- admin.html: Add select dropdown in both add and edit gateway forms
- admin.js: Populate the dropdown with existing value when editing
Fixes #3991
Signed-off-by: Olivier Gintrand <olivier.gintrand@forterro.com>1 parent 6c567f7 commit f8d478c
3 files changed
+58
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11930 | 11930 | | |
11931 | 11931 | | |
11932 | 11932 | | |
| 11933 | + | |
| 11934 | + | |
| 11935 | + | |
| 11936 | + | |
| 11937 | + | |
11933 | 11938 | | |
11934 | 11939 | | |
11935 | 11940 | | |
| |||
12202 | 12207 | | |
12203 | 12208 | | |
12204 | 12209 | | |
| 12210 | + | |
| 12211 | + | |
| 12212 | + | |
| 12213 | + | |
| 12214 | + | |
12205 | 12215 | | |
12206 | 12216 | | |
12207 | 12217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6306 | 6306 | | |
6307 | 6307 | | |
6308 | 6308 | | |
| 6309 | + | |
| 6310 | + | |
| 6311 | + | |
6309 | 6312 | | |
6310 | 6313 | | |
6311 | 6314 | | |
| |||
6436 | 6439 | | |
6437 | 6440 | | |
6438 | 6441 | | |
| 6442 | + | |
| 6443 | + | |
| 6444 | + | |
| 6445 | + | |
| 6446 | + | |
| 6447 | + | |
| 6448 | + | |
6439 | 6449 | | |
6440 | 6450 | | |
6441 | 6451 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5983 | 5983 | | |
5984 | 5984 | | |
5985 | 5985 | | |
| 5986 | + | |
| 5987 | + | |
| 5988 | + | |
| 5989 | + | |
| 5990 | + | |
| 5991 | + | |
| 5992 | + | |
| 5993 | + | |
| 5994 | + | |
| 5995 | + | |
| 5996 | + | |
| 5997 | + | |
| 5998 | + | |
| 5999 | + | |
| 6000 | + | |
| 6001 | + | |
| 6002 | + | |
| 6003 | + | |
| 6004 | + | |
5986 | 6005 | | |
5987 | 6006 | | |
5988 | 6007 | | |
| |||
10255 | 10274 | | |
10256 | 10275 | | |
10257 | 10276 | | |
| 10277 | + | |
| 10278 | + | |
| 10279 | + | |
| 10280 | + | |
| 10281 | + | |
| 10282 | + | |
| 10283 | + | |
| 10284 | + | |
| 10285 | + | |
| 10286 | + | |
| 10287 | + | |
| 10288 | + | |
| 10289 | + | |
| 10290 | + | |
| 10291 | + | |
| 10292 | + | |
| 10293 | + | |
| 10294 | + | |
| 10295 | + | |
10258 | 10296 | | |
10259 | 10297 | | |
10260 | 10298 | | |
| |||
0 commit comments