-
Notifications
You must be signed in to change notification settings - Fork 313
Link get_token errors to azure_identity troubleshooting guide #3128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances error messages in the Azure Identity credential implementations to provide better troubleshooting guidance by linking to specific sections of the Azure SDK troubleshooting guide.
- Introduces a new
authentication_error
function that wraps credential errors with credential-specific troubleshooting links - Updates all credential implementations to use this error wrapper in their
get_token
methods - Adds comprehensive test coverage to verify that error messages include the appropriate troubleshooting links
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
lib.rs |
Adds the authentication_error helper function and troubleshooting guide constant |
managed_identity_credential.rs |
Updates error handling and adds test for troubleshooting link inclusion |
workload_identity_credential.rs |
Updates error handling and adds test for troubleshooting link inclusion |
client_secret_credential.rs |
Updates error handling and enhances existing test to verify troubleshooting link |
client_certificate_credential.rs |
Updates error handling to include troubleshooting link |
azure_pipelines_credential.rs |
Updates error handling and enhances existing test to verify troubleshooting link |
before
"the requested identity has not been assigned to this resource"
after
"ManagedIdentityCredential: the requested identity has not been assigned to this resource. To troubleshoot, visit https://aka.ms/azsdk/rust/identity/troubleshoot#managed-id"
Closes #2677