Skip to content

Commit fbf752d

Browse files
authored
update ci files to build on oidc conf changes (#7753)
1 parent d44d1c7 commit fbf752d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/scripts/variables.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ get_docker_md5() {
1818
}
1919

2020
get_go_code_md5() {
21-
find . -type f \( -name "*.go" -o -name go.mod -o -name go.sum -o -name "*.tmpl" -o -name "version.txt" -o -name "*.js" \) -not -path "./site*" -exec md5sum {} + | LC_ALL=C sort | md5sum | awk '{ print $1 }'
21+
find . -type f \( -name "*.go" -o -name go.mod -o -name go.sum -o -name "*.tmpl" -o -name "version.txt" -o -name "*.js" -o -name "*.conf" \) -not -path "./site*" -exec md5sum {} + | LC_ALL=C sort | md5sum | awk '{ print $1 }'
2222
}
2323

2424
get_tests_md5() {

internal/configs/oidc/oidc.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
# to construct the OpenID Connect token request, as per:
3838
# http://openid.net/specs/openid-connect-core-1_0.html#TokenRequest
3939
internal;
40+
41+
# Exclude client headers to avoid CORS errors with certain IdPs (e.g., Microsoft Entra ID)
42+
proxy_pass_request_headers off;
43+
4044
proxy_ssl_server_name on; # For SNI to the IdP
4145
proxy_set_header Content-Type "application/x-www-form-urlencoded";
4246
proxy_set_header Authorization $arg_secret_basic;
@@ -48,6 +52,10 @@
4852
# use the proxy_ directives to construct the OpenID Connect token request, as per:
4953
# https://openid.net/specs/openid-connect-core-1_0.html#RefreshingAccessToken
5054
internal;
55+
56+
# Exclude client headers to avoid CORS errors with certain IdPs (e.g., Microsoft Entra ID)
57+
proxy_pass_request_headers off;
58+
5159
proxy_ssl_server_name on; # For SNI to the IdP
5260
proxy_set_header Content-Type "application/x-www-form-urlencoded";
5361
proxy_set_header Authorization $arg_secret_basic;

0 commit comments

Comments
 (0)