Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Add support for authentication API v3 #22

Merged

Conversation

PatrykMatyjasek
Copy link
Contributor

Add support for authentication API v3

Signed-off-by: Patryk Matyjasek [email protected]

- fix for intelsdi-x#21

Signed-off-by: Patryk Matyjasek <[email protected]>
@PatrykMatyjasek PatrykMatyjasek force-pushed the pm-auth-api-v3-support branch from 68b1be7 to d2b7454 Compare April 3, 2017 12:38
@@ -8,6 +8,8 @@
"openstack_user": "admin",
"openstack_pass": "admin",
"openstack_tenant": "admin",
"openstack_domain_id": "",
Copy link

Choose a reason for hiding this comment

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

When using API v3 you need to specify one of the openstack_domain_id or openstack_domain_name. If the user specifies both of them they get an error that one can specify only one of them.
However both of them need to specified in global config as due to usage of function config.GetConfigItem() all the fields in config are mandatory.

It may be a bit confusing for the user. So:

  • we should add note to documentation that all the config options are mandatory, and one of options openstack_domain_id or openstack_domain_name needs to be set to an empty string when using v3.
  • open an issue to refactor getting config items

@ghost
Copy link

ghost commented Apr 4, 2017

LGTM

@PatrykMatyjasek PatrykMatyjasek merged commit 7516021 into intelsdi-x:master Apr 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant