Add role ID to token metadata and internal data

This commit is contained in:
Jeff Mitchell 2019-01-30 16:17:31 -05:00
parent 47accf8086
commit d8b0015d71
1 changed files with 2 additions and 0 deletions

View File

@ -1330,9 +1330,11 @@ func (b *backend) pathLoginUpdateIam(ctx context.Context, req *logical.Request,
"inferred_entity_id": inferredEntityID,
"inferred_aws_region": roleEntry.InferredAWSRegion,
"account_id": entity.AccountNumber,
"role_id": roleEntry.RoleID,
},
InternalData: map[string]interface{}{
"role_name": roleName,
"role_id": roleEntry.RoleID,
},
DisplayName: entity.FriendlyName,
LeaseOptions: logical.LeaseOptions{