Skip to content

Commit

Permalink
Merge pull request #996 from HeshanSudarshana/3.2.x-get-keys-issue
Browse files Browse the repository at this point in the history
[3.2.x] Append username to clientName for DCR call in get keys flow
  • Loading branch information
HeshanSudarshana authored Aug 29, 2023
2 parents aeef920 + 9e81d63 commit 398852b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion import-export-cli/cmd/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,9 @@ func callDCREndpoint(credential credentials.Credential) (string, string, error)
headers[utils.HeaderAuthorization] = utils.HeaderValueAuthBasicPrefix + " " + b64encodedCredentials
headers[utils.HeaderContentType] = utils.HeaderValueApplicationJSON
//Request body for the store REST API
updatedUsername := strings.ReplaceAll(credential.Username, "@", "_")
body := dedent.Dedent(`{
"clientName": "rest_api_store",
"clientName": "rest_api_store_` + updatedUsername + `",
"callbackUrl": "www.google.lk",
"grantType":"password refresh_token",
"saasApp": true,
Expand Down

0 comments on commit 398852b

Please sign in to comment.