2 Package tokens provides information and interaction with the token API
3 resource for the OpenStack Identity service.
5 For more information, see:
6 http://developer.openstack.org/api-ref-identity-v2.html#identity-auth-v2
8 Example to Create an Unscoped Token from a Password
10 authOpts := gophercloud.AuthOptions{
15 token, err := tokens.Create(identityClient, authOpts).ExtractToken()
20 Example to Create a Token from a Tenant ID and Password
22 authOpts := gophercloud.AuthOptions{
25 TenantID: "fc394f2ab2df4114bde39905f800dc57"
28 token, err := tokens.Create(identityClient, authOpts).ExtractToken()
33 Example to Create a Token from a Tenant Name and Password
35 authOpts := gophercloud.AuthOptions{
38 TenantName: "tenantname"
41 token, err := tokens.Create(identityClient, authOpts).ExtractToken()