-
Notifications
You must be signed in to change notification settings - Fork 205
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
Show full Entra error description on auth failure #4585
base: main
Are you sure you want to change the base?
Show full Entra error description on auth failure #4585
Conversation
Thanks for sharing the screen shots, @JeffreyCA! One of the things that jumped out at me with them (which I don't think is a problem introduced by this PR) is that the suggestion text is sort of hard to find, especially with the large amount of red text before. In a future PR we might want to introduce some whitespace (and maybe some color?) to help it pop a little more - just my two cents. |
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash:
pwsh:
WindowsPowerShell install
MSI install
Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
Sure, I created an issue #4589 for this. |
if slices.Contains((response.ErrorCodes), 50005) { | ||
e.loginCmd += " --use-device-code=false" | ||
// TODO: Use aka.ms short link | ||
e.helpLink = "https://learn.microsoft.com/azure/developer/azure-developer-cli/troubleshoot#azd-pipeline-config-failure-due-to-conditional-access-policy" |
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.
I'm not familiar with our aka.ms naming conventions - @alexwolfmsft could you or someone help create an aka.ms shortlink that points to this URL?
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.
I'm wondering if the user may not have ran pipeline config
here at all; while the documentation we provide here would be specific to pipeline config.
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.
Thanks for starting the PR! Left some minor comments. Happy to discuss more on the documentation we provide for pipeline config / conditional access policy handling.
if slices.Contains((response.ErrorCodes), 50005) { | ||
e.loginCmd += " --use-device-code=false" | ||
// TODO: Use aka.ms short link | ||
e.helpLink = "https://learn.microsoft.com/azure/developer/azure-developer-cli/troubleshoot#azd-pipeline-config-failure-due-to-conditional-access-policy" |
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.
I'm wondering if the user may not have ran pipeline config
here at all; while the documentation we provide here would be specific to pipeline config.
Fixes #4559 so that the full Entra error description is shown to the user when there's an auth failure. In addition, the instruction text to reauthenticate is now wrapped in a suggestion.
Existing behaviour:
New behaviour: