Skip to content

An auth with token example is needed #1455

@larryck

Description

@larryck

From the README.md file we know clearly how to auth with username/passwd. But it really took me some time to figure out how to auth with tokenid. So I think an example will be great for new users to handle this quickly. We can add some thing like this:

  // auth with token
    opts := gophercloud.AuthOptions{
        IdentityEndpoint: "{identityendpoint}",
        TokenID: "{tokenid}",
        TenantID: "{tenantid}",
    }
    provider, err := openstack.AuthenticatedClient(opts)

Metadata

Metadata

Assignees

No one assigned

    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