-
Notifications
You must be signed in to change notification settings - Fork 334
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
Fix missing client_id in payload error when using only an Azure username and password #1409
Conversation
@kmj251 Thank you very much for your contribution, this is indeed a necessary modification! |
Any eta on a patch release as we hit this issue as well? |
@ericsysmin We can't confirm this yet, but we will release it as soon as possible. Thank you! |
Bug was introduced. credentialss is not valid |
@@ -1491,7 +1491,9 @@ def __init__(self, auth_source=None, profile=None, subscription_id=None, client_ | |||
authority=self._adfs_authority_url) | |||
|
|||
elif self.credentials.get('ad_user') is not None and self.credentials.get('password') is not None: | |||
client_id = self.credentials.get('client_id', '04b07795-8ddb-461a-bbee-02f9e1bf7b46') | |||
client_id = self.credentialss.get('client_id') |
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.
client_id = self.credentialss.get('client_id')
needs to be
client_id = self.credentials.get('client_id')
@ericsysmin Thanks for catching that! I have a new PR to fix the typo. |
SUMMARY
Fix code that does not set a default client_id correctly when only the ad_user and password are provided for authentication.
The code will now attempt to set the client_id to self.credentials.get('client_id'), if that value is
None
because it was not passed in, it will set client_id to a default value.Fixes #1408
ISSUE TYPE
COMPONENT NAME
azure_rm_common.py
ADDITIONAL INFORMATION