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

Add support for Azure AD with User Password #584

Closed
wants to merge 2 commits into from
Closed

Add support for Azure AD with User Password #584

wants to merge 2 commits into from

Conversation

erinn
Copy link

@erinn erinn commented Jul 20, 2021

SUMMARY

I struggled with this for the better part of a half of a day, hopefully this can be pulled in to save someone the trouble I went through.

Issue is that when using a service principal azure AD operations will work as the auth flow is configured for that eventuality. When using username password, it is NOT. This fixes that issue.

I would guess that a test should be written for this case so that it is dealt with in the future, but I am probably not the person to add a test to your setup.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

This is part of the module utils common auth.

ADDITIONAL INFORMATION

The, fairly unhelpful error that showed up BEFORE the change:

"msg": "failed to get ad group info Access Token missing or malformed."

After the patch things work as expected with username password auth.

I struggled with this for the better part of a half of a day, hopefully this can be pulled in to save someone the trouble I went through.

Issue is that when using a service principal azure AD operations will work as the auth flow is configured for that eventuality. When using username password, it is NOT. This fixes that issue. 

I would guess that a test should be written for this case so that it is dealt with in the future, but I am probably not the person to add a test to your setup.
Copy link
Collaborator

@Fred-sun Fred-sun left a comment

Choose a reason for hiding this comment

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

@erinn Trailing whitespace

@Fred-sun Fred-sun added medium_priority Medium priority work in In trying to solve, or in working with contributors labels Aug 5, 2021
Co-authored-by: Fred-sun <37327967+Fred-sun@users.noreply.github.com>
@Fred-sun
Copy link
Collaborator

Fred-sun commented Dec 8, 2021

Repeate #537, It has been merged

@Fred-sun Fred-sun closed this Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium_priority Medium priority work in In trying to solve, or in working with contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants