Update tenant creation credentials JSON (#1559)

This commit is contained in:
jinapurapu
2022-02-16 13:52:38 -08:00
committed by GitHub
parent 24cf6a3ada
commit f8c397e231
13 changed files with 47 additions and 6 deletions

View File

@@ -3478,6 +3478,9 @@ func init() {
},
"secret_key": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
@@ -7741,6 +7744,9 @@ func init() {
},
"secret_key": {
"type": "string"
},
"url": {
"type": "string"
}
}
},

View File

@@ -1453,11 +1453,18 @@ func getTenantCreatedResponse(session *models.Principal, params operator_api.Cre
response = &models.CreateTenantResponse{
ExternalIDP: tenantExternalIDPConfigured,
}
thisClient := &operatorClient{
client: opClient,
}
minTenant, err := getTenant(ctx, thisClient, ns, tenantName)
if tenantReq.Idp != nil && !tenantExternalIDPConfigured {
for _, credential := range tenantReq.Idp.Keys {
response.Console = append(response.Console, &models.TenantResponseItem{
AccessKey: *credential.AccessKey,
SecretKey: *credential.SecretKey,
URL: GetTenantServiceURL(minTenant),
})
}
}