Skip to content

Commit 1ce438c

Browse files
authored
update oidc.conf and template (nginx#6837)
1 parent 3830101 commit 1ce438c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

internal/configs/oidc/oidc.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
internal;
4040
proxy_ssl_server_name on; # For SNI to the IdP
4141
proxy_set_header Content-Type "application/x-www-form-urlencoded";
42-
proxy_set_body "grant_type=authorization_code&client_id=$oidc_client&$args&redirect_uri=$redirect_base$redir_location";
43-
proxy_method POST;
42+
proxy_set_header Authorization $arg_secret_basic;
4443
proxy_pass $oidc_token_endpoint;
4544
}
4645

@@ -51,8 +50,7 @@
5150
internal;
5251
proxy_ssl_server_name on; # For SNI to the IdP
5352
proxy_set_header Content-Type "application/x-www-form-urlencoded";
54-
proxy_set_body "grant_type=refresh_token&refresh_token=$arg_token&client_id=$oidc_client&client_secret=$oidc_client_secret";
55-
proxy_method POST;
53+
proxy_set_header Authorization $arg_secret_basic;
5654
proxy_pass $oidc_token_endpoint;
5755
}
5856

internal/configs/version2/nginx-plus.virtualserver.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ server {
9090
include oidc/oidc.conf;
9191

9292
set $oidc_pkce_enable 0;
93+
set $oidc_client_auth_method "client_secret_post";
9394
set $oidc_logout_redirect "{{ $oidc.PostLogoutRedirectURI }}";
9495
set $oidc_hmac_key "{{ $s.VSName }}";
9596
set $zone_sync_leeway {{ $oidc.ZoneSyncLeeway }};

0 commit comments

Comments
 (0)