Add Auth Account id to Auth Token response (#363)
This commit is contained in:
1 parent
2b664f78ed
commit
f96fa25157
6 files changed
+43
-17
No files matched your search
@@ -194,6 +194,7 @@ func toProto(in *authtoken.AuthToken) *pb.AuthToken {
|
||||
ExpirationTime: in.GetExpirationTime().GetTimestamp(),
|
||||
UserId: in.GetIamUserId(),
|
||||
AuthMethodId: in.GetAuthMethodId(),
|
||||
AccountId: in.GetAuthAccountId(),
|
||||
}
|
||||
return &out
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ func TestGet(t *testing.T) {
|
||||
ScopeId: at.GetScopeId(),
|
||||
UserId: at.GetIamUserId(),
|
||||
AuthMethodId: at.GetAuthMethodId(),
|
||||
AccountId: at.GetAuthAccountId(),
|
||||
CreatedTime: at.GetCreateTime().GetTimestamp(),
|
||||
UpdatedTime: at.GetUpdateTime().GetTimestamp(),
|
||||
ApproximateLastUsedTime: at.GetApproximateLastAccessTime().GetTimestamp(),
|
||||
@@ -117,6 +118,7 @@ func TestList(t *testing.T) {
|
||||
ScopeId: at.GetScopeId(),
|
||||
UserId: at.GetIamUserId(),
|
||||
AuthMethodId: at.GetAuthMethodId(),
|
||||
AccountId: at.GetAuthAccountId(),
|
||||
CreatedTime: at.GetCreateTime().GetTimestamp(),
|
||||
UpdatedTime: at.GetUpdateTime().GetTimestamp(),
|
||||
ApproximateLastUsedTime: at.GetApproximateLastAccessTime().GetTimestamp(),
|
||||
@@ -134,6 +136,7 @@ func TestList(t *testing.T) {
|
||||
ScopeId: at.GetScopeId(),
|
||||
UserId: at.GetIamUserId(),
|
||||
AuthMethodId: at.GetAuthMethodId(),
|
||||
AccountId: at.GetAuthAccountId(),
|
||||
CreatedTime: at.GetCreateTime().GetTimestamp(),
|
||||
UpdatedTime: at.GetUpdateTime().GetTimestamp(),
|
||||
ApproximateLastUsedTime: at.GetApproximateLastAccessTime().GetTimestamp(),
|
||||
|
||||
Reference in new issue
Block a user