Skip to content

Commit 708c13b

Browse files
committed
debug
1 parent 3bb9b3d commit 708c13b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/token-federation-test.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,18 @@ jobs:
214214
215215
# Create a properly URL-encoded request
216216
echo "Creating token exchange request..."
217-
curl_data=$(cat <<EOF
218-
client_id=$IDENTITY_FEDERATION_CLIENT_ID&\
219-
subject_token=$OIDC_TOKEN&\
220-
subject_token_type=urn:ietf:params:oauth:token-type:jwt&\
221-
grant_type=urn:ietf:params:oauth:grant-type:token-exchange&\
222-
scope=sql
223-
EOF
217+
curl_data=$(cat << 'EOF'
218+
client_id=$IDENTITY_FEDERATION_CLIENT_ID&\
219+
subject_token=$OIDC_TOKEN&\
220+
subject_token_type=urn:ietf:params:oauth:token-type:jwt&\
221+
grant_type=urn:ietf:params:oauth:grant-type:token-exchange&\
222+
scope=sql
223+
EOF
224224
)
225225
226+
# Substitute environment variables in the curl data
227+
curl_data=$(eval echo "$curl_data")
228+
226229
# Print request details (except the token)
227230
echo "Request URL: https://$DATABRICKS_HOST/oidc/v1/token"
228231
echo "Request data: $(echo "$curl_data" | sed 's/subject_token=.*&/subject_token=REDACTED&/')"

0 commit comments

Comments
 (0)