Skip to content
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

feat(aks): update the aad protocal to try interactive login no matter the failure #702

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

Gearheads
Copy link
Collaborator

@Gearheads Gearheads commented Aug 8, 2024

What this PR does / why we need it:
This change will update the Azure AAD protocol to try an interactive login if the non-interactive login fails for any reason. If the interactive login also fails, then we return an error. We have noticed that some users receive different error messages when attempting to do a non-interactive login, so this change will hopefully cover those other error messages.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Users were seeing the following error message:

C:> az login -u XXX -p XXX
(pii). Status: Response_Status.Status_InteractionRequired, Error code: 3399614476, Tag: 557973645
Please explicitly log in with:
az login

Instead of the expected error message of "Interactive authentication is needed."

This branch can be deleted once it is merged.

… the failure

This change will update the Azure AAD protocol to try an interactive login if the non-interactive login fails for any reason. If the interactive login also fails, then we return an error. We have noticed that some users receive different error messages when attempting to do a non-interactive login, so this change will hopefully cover those other error messages.

Signed-off-by: Casale, Robert <robert.casale@fmr.com>
Copy link

@niroowns niroowns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Gearheads Gearheads merged commit 33696a2 into main Aug 9, 2024
15 checks passed
@Gearheads Gearheads deleted the fix/azure-aad-login-failure branch August 9, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants