Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects

fix keycloak public key

Merged Marco Amoia requested to merge feature/fixPublicKey into develop
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -58,8 +58,9 @@ public class KeycloakServiceImpl implements KeycloakService {
public String getPublicKey() {
return getAppRealm().keys().getKeyMetadata().getKeys().stream()
.filter(k -> Objects.equals(k.getUse(), SIG))
.findFirst()
.map(KeysMetadataRepresentation.KeyMetadataRepresentation::getPublicKey)
.filter(Objects::nonNull)
.findFirst()
.orElseThrow(NotFoundException::new);
}
}
Loading