Skip to content

Commit

Permalink
update oidc.conf and template (#6837)
Browse files Browse the repository at this point in the history
  • Loading branch information
vepatel authored Nov 21, 2024
1 parent 3830101 commit 1ce438c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/configs/oidc/oidc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
internal;
proxy_ssl_server_name on; # For SNI to the IdP
proxy_set_header Content-Type "application/x-www-form-urlencoded";
proxy_set_body "grant_type=authorization_code&client_id=$oidc_client&$args&redirect_uri=$redirect_base$redir_location";
proxy_method POST;
proxy_set_header Authorization $arg_secret_basic;
proxy_pass $oidc_token_endpoint;
}

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

Expand Down
1 change: 1 addition & 0 deletions internal/configs/version2/nginx-plus.virtualserver.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ server {
include oidc/oidc.conf;

set $oidc_pkce_enable 0;
set $oidc_client_auth_method "client_secret_post";
set $oidc_logout_redirect "{{ $oidc.PostLogoutRedirectURI }}";
set $oidc_hmac_key "{{ $s.VSName }}";
set $zone_sync_leeway {{ $oidc.ZoneSyncLeeway }};
Expand Down

0 comments on commit 1ce438c

Please sign in to comment.