Retrieves an OAuth2 access token from Azure Active Directory for the specified resource. This is used when Workbench is configured with Azure AD authentication and you need to access Azure resources on behalf of the authenticated user.
The resource URL for which to request the token. For example: - “https://management.azure.com/” for Azure Resource Manager - “https://storage.azure.com/” for Azure Storage - “https://graph.microsoft.com/” for Microsoft Graph Must be a non-empty string.
required
Returns
Name
Type
Description
AzureToken
A dictionary containing the access token and metadata including: - access_token: The OAuth2 bearer token - token_type: The token type (typically “Bearer”) - expires_in: Token lifetime in seconds - scope: Granted scopes (optional) - ext_expires_in: Extended expiration for Azure (optional)
If the backend returns an error response, which may occur if: - Workbench is not configured with Azure AD authentication - The resource URL is invalid or not authorized - The user lacks necessary permissions