Skip to content

Could not use basic Authentication #85

@AmineYaiche

Description

@AmineYaiche

When I try to use basic authentication by using email/password credentials:

gw = Gateway(email="your@email.com", password="youAccountPasswo")
gw.ReadAccessKeys()

I get the following error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/outscale/.local/lib/python3.10/site-packages/osc_sdk_python/outscale_gateway.py", line 156, in _action
    result = self.call.api(self.action_name, **kwargs)
  File "/home/outscale/.local/lib/python3.10/site-packages/osc_sdk_python/call.py", line 36, in api
    raise err
  File "/home/outscale/.local/lib/python3.10/site-packages/osc_sdk_python/call.py", line 24, in api
    credentials = Credentials(**self.credentials)
  File "/home/outscale/.local/lib/python3.10/site-packages/osc_sdk_python/credentials.py", line 43, in __init__
    self.check_options()
  File "/home/outscale/.local/lib/python3.10/site-packages/osc_sdk_python/credentials.py", line 76, in check_options
    if self.access_key == None or len(self.access_key) == 0:
AttributeError: 'Credentials' object has no attribute 'access_key'

My understanding is that check_options crashes if there is no access_key

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions