Skip to content

Conversation

@Keayoub
Copy link
Owner

@Keayoub Keayoub commented Jan 26, 2026

v1.6.0 release

…ute methods

Also add comprehensive test results for custom attributes with different data types
…, and 1.3.10.

Add new sample JSON for business metadata glossary attributes and update Jupyter notebook with instructions for defining custom attributes in Atlas.
…view.azure.net

- Updated sync_client.py to use correct auth scope 'https://purview.azure.net/.default'
- Added AzureCliCredentialFixed class to properly handle Azure CLI token retrieval
- Fixes 403 authentication errors when using Purview CLI from VMs with VNet
- Prioritizes custom Azure CLI credential that uses correct scope before fallback to DefaultAzureCredential
- Properly parses datetime expiresOn values from az account get-access-token
- Create custom authentication exception classes:
  - PurviewAuthenticationError (base)
  - InvalidServicePrincipalError (AADSTS500011 errors)
  - AzureCliAuthenticationError (CLI-specific errors)
  - AzureCredentialsError (credential configuration errors)
  - AzureCliNotFoundError (CLI not found)
  - TokenExpirationError (token parsing errors)

- Improve AzureCliCredentialFixed with:
  - Detailed error detection and logging
  - Specific error messages for service principal issues
  - Better token expiration parsing with fallback handling
  - Debug logging at each step

- Enhance _get_authentication_token with:
  - Layered auth method attempts with specific error handling
  - Service principal authentication with detailed error messages
  - Azure CLI fallback with proper error detection
  - DefaultAzureCredential as final fallback
  - Actionable error messages with setup instructions

- Improve make_request error handling:
  - Catch authentication errors from API calls
  - Log all requests and responses
  - Better error messages for 401 Unauthorized
  - Token refresh with proper error propagation

- Add comprehensive troubleshooting guide:
  - doc/AUTHENTICATION_TROUBLESHOOTING.md
  - Covers all common authentication errors
  - Includes solutions and setup instructions
  - Network troubleshooting section
@Keayoub Keayoub merged commit b357299 into release Jan 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants