Skip to content

Commit

Permalink
change identity controller URL
Browse files Browse the repository at this point in the history
  • Loading branch information
epicsoft-llc committed Sep 22, 2021
1 parent aa14ef5 commit abc4fd2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@ public IdentityResponse getIdentity(final String element, final String type) {
}

private List<VerificationIdentityResponse> getVerificationMethods(final String element, final String type) {
final String identityRoot = String.format("%s%s", dgcProperties.getServiceUrl(), IDENTITY_ROOT);
final String identityPath = String.format("%s%s", dgcProperties.getServiceUrl(), IDENTITY_PATH);

return keyProvider.getKeyNames(KeyType.ALL).stream()
.filter(keyName -> element == null || ELEMENT_VERIFICATION_METHOD.equalsIgnoreCase(element))
.map(keyName -> {
final VerificationIdentityResponse verificationMethod = new VerificationIdentityResponse();
verificationMethod.setId(String.format("%s/%s", identityPath, keyName));
verificationMethod.setController(identityPath);
verificationMethod.setController(identityRoot);
verificationMethod.setType(VERIFICATION_TYPE);
verificationMethod.setPublicKeyJwk(buildPublicKey(keyName));
return verificationMethod;
Expand Down

0 comments on commit abc4fd2

Please sign in to comment.