From d079b99c4c43404ff5e1ed0e625e2b9b5d7da1dd Mon Sep 17 00:00:00 2001 From: "Ruddarraju, Uday Kumar Raju" Date: Tue, 23 Feb 2016 10:53:59 -0800 Subject: [PATCH] Extracting User and Tenant details during get token details api call --- openstack/identity/v3/tokens/results.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openstack/identity/v3/tokens/results.go b/openstack/identity/v3/tokens/results.go index d134f7d4..7e0f5bab 100644 --- a/openstack/identity/v3/tokens/results.go +++ b/openstack/identity/v3/tokens/results.go @@ -67,6 +67,12 @@ func (r commonResult) ExtractToken() (*Token, error) { Token struct { ExpiresAt string `mapstructure:"expires_at"` } `mapstructure:"token"` + User struct { + Name string `mapstructure:"name,omitempty"` + ID string `mapstucture:"id,omitempty"` + TenantName string `mapstructure:"tenantName,omitempty"` + TenantID string `mapstructure:"tenantId,omitempty"` + } `mapstructure:"user,omitempty"` } var token Token