Skip to content

v2: Support TrustID in AuthOptions (clouds.yaml) #3105

@pgaxatte

Description

@pgaxatte

The AuthOptions struct does not have a TrustID field making it impossible to use a trust with a clouds.yaml file.

This example works with the openstack CLI:

clouds:
  mycloud:
    auth:
      auth_url: https://...
      user_id: "..."
      password: "..."
      user_domain_name: "Default"
      trust_id: "XXXX"
    region_name: "RegionOne"

With gophercloud v2, I have to do this to use the trust:

authOptions, endpointOptions, tlsConfig, err := clouds.Parse()
authOptions.Scope = &gophercloud.AuthScope{
	TrustID: "XXX",
}

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