Skip to content

can't authenticate with env vars #3240

Description

@winiciusallan

when using openstack.AuthOptionsFromEnv(), the following error was thrown

> go run main.go                               
panic: You must provide exactly one of DomainID or DomainName to authenticate by Username

I needed to declare OS_DOMAIN_NAME to make it work

> export OS_DOMAIN_NAME=xxxxx; go run main.go
 expected output ...

But when I exported the openrc, the OS_USER_DOMAIN_NAME was declared, so I expected this to work properly

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions