Skip to content

Commit 3a52722

Browse files
committed
update oidc.conf
1 parent 67af19e commit 3a52722

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-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

0 commit comments

Comments
 (0)