Skip to content

Commit

Permalink
AUT-922 Fix send signing secret by email
Browse files Browse the repository at this point in the history
  • Loading branch information
aarmam committed May 5, 2022
1 parent 41e9352 commit 4c39726
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ private void saveClient(Client client, String registryCode, String uri, HttpMeth

if (shouldGenerateNewSecret(client)) {
assertValidIdCode(client.getClientSecretExportSettings());
String newSecret = SecureRandomAlphaNumericStringGenerator.INSTANCE.generate(SIGNING_SECRET_LENGTH);
client.setSecret(newSecret);
clientSecretEmailService.sendSigningSecretByEmail(client);

String newSecret = SecureRandomAlphaNumericStringGenerator.INSTANCE.generate(SIGNING_SECRET_LENGTH);
hydraClient.setClientSecret(hashSecret ? ClientHelper.getDigest(newSecret) : newSecret);
oidcService.saveClient(hydraClient, uri, httpMethod);
}
Expand Down

This file was deleted.

0 comments on commit 4c39726

Please sign in to comment.