Skip to content

Add login/password auth#80

Merged
outscale-mgo merged 1 commit intomasterfrom
login-password
Sep 1, 2022
Merged

Add login/password auth#80
outscale-mgo merged 1 commit intomasterfrom
login-password

Conversation

@jerome-jutteau
Copy link
Copy Markdown
Contributor

closes #79

Signed-off-by: Jérôme Jutteau jerome.jutteau@outscale.com

Comment thread osc_sdk_python/authentication.py Outdated
user_agent = DEFAULT_USER_AGENT):
self.access_key = credentials.get_ak()
self.secret_key = credentials.get_sk()
self.email = credentials.get_email()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

TBH I'm not a big fan of those getter.
I would prefer if we use credentials.email, and so on.

Comment thread osc_sdk_python/credentials.py Outdated
def get_url_extension(self):
return 'hk' if 'cn' in self.region else 'com'

def get_email(self):
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

As said before, I would prefer to remove the getter (in another PR), than add other getter, that are not really useful

closes #79

Signed-off-by: Jérôme Jutteau <jerome.jutteau@outscale.com>
@outscale-mgo outscale-mgo merged commit 49acc21 into master Sep 1, 2022
@jerome-jutteau jerome-jutteau deleted the login-password branch September 1, 2022 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Support for login/password authentication

2 participants