Skip to content

Commit daa4122

Browse files
Update databricks-sdk-java/src/main/java/com/databricks/sdk/core/oauth/AzureDevOpsIDTokenSource.java
Co-authored-by: Renaud Hartert <[email protected]>
1 parent f33405d commit daa4122

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

databricks-sdk-java/src/main/java/com/databricks/sdk/core/oauth/AzureDevOpsIDTokenSource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ public IDToken getIDToken(String audience) {
153153
+ resp.getBody().toString());
154154
}
155155

156-
// Parse the JSON response
157-
// Azure DevOps returns {"oidcToken":"***"} format, not {"value":"***"} like GitHub Actions
158156
ObjectNode jsonResp;
159157
try {
160158
jsonResp = mapper.readValue(resp.getBody(), ObjectNode.class);
@@ -163,6 +161,7 @@ public IDToken getIDToken(String audience) {
163161
"Failed to parse Azure DevOps OIDC token response: " + e.getMessage(), e);
164162
}
165163

164+
// Azure DevOps returns {"oidcToken":"***"} format, not {"value":"***"} like GitHub Actions.
166165
if (!jsonResp.has("oidcToken")) {
167166
throw new DatabricksException("Azure DevOps OIDC token response missing 'oidcToken' field");
168167
}

0 commit comments

Comments
 (0)