@InternalApi public class AzureDevOpsIDTokenSource extends Object implements IDTokenSource
This implementation relies on the Azure DevOps OIDC token API.
| Modifier | Constructor and Description |
|---|---|
|
AzureDevOpsIDTokenSource(HttpClient httpClient)
Constructs a new AzureDevOpsIDTokenSource by reading environment variables.
|
protected |
AzureDevOpsIDTokenSource(HttpClient httpClient,
Environment environment)
Constructs a new AzureDevOpsIDTokenSource with a custom environment.
|
| Modifier and Type | Method and Description |
|---|---|
IDToken |
getIDToken(String audience)
Retrieves an ID token from Azure DevOps Pipelines.
|
public AzureDevOpsIDTokenSource(HttpClient httpClient)
httpClient - The HTTP client to use for making requestsDatabricksException - if any required environment variables are missingprotected AzureDevOpsIDTokenSource(HttpClient httpClient, Environment environment)
httpClient - The HTTP client to use for making requestsenvironment - The environment to read configuration fromDatabricksException - if httpClient is null or any required environment variables are
missingpublic IDToken getIDToken(String audience)
Note: The audience parameter is ignored for Azure DevOps OIDC tokens as they have a hardcoded audience for Azure AD integration.
getIDToken in interface IDTokenSourceaudience - Ignored for Azure DevOps OIDC tokensDatabricksException - if the token request failsCopyright © 2026. All rights reserved.