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

Auth: overriding auth methods #84

Open
kayrus opened this issue Mar 21, 2019 · 0 comments
Open

Auth: overriding auth methods #84

kayrus opened this issue Mar 21, 2019 · 0 comments

Comments

@kayrus
Copy link
Contributor

kayrus commented Mar 21, 2019

Initial issue: https://github.com/terraform-providers/terraform-provider-openstack/issues/638

There is no way to explicitly set the auth method. v2auth and v3auth funcs override already defined auth opts from the environment variables.

There are multiple solutions to resolve this issue.

  • Change EnvPrefix type from string to *string and allow defining an empty prefix. This will allow to specify options from env variables with no prefix.
  • Move out condiotions to the top level. This will allow to override password auth with app creds, but not vice versa.
  • Introduce EnvOverride bool option into ClientOpts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant