Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,11 @@ public X509Certificate[] loadTrustedCACertificatesFromTrustStore() {
@Bean
public AuthTokenValidator validator() {
try {
AuthTokenValidatorBuilder validatorBuilder = new AuthTokenValidatorBuilder()
return new AuthTokenValidatorBuilder()
.withSiteOrigin(URI.create(yamlConfig().getLocalOrigin()))
.withTrustedCertificateAuthorities(loadTrustedCACertificatesFromCerFiles())
.withTrustedCertificateAuthorities(loadTrustedCACertificatesFromTrustStore());
if (activeProfile.equals("dev")) {
// Enable support for ESTEID 2015 test certificates in development profile.
validatorBuilder = validatorBuilder.withNonceDisabledOcspUrls(URI.create("http://aia.demo.sk.ee/esteid2015"));
}
return validatorBuilder.build();
.withTrustedCertificateAuthorities(loadTrustedCACertificatesFromTrustStore())
.build();
} catch (JceException e) {
throw new RuntimeException("Error building the Web eID auth token validator.", e);
}
Expand Down
Binary file not shown.
Binary file removed src/main/resources/certs/prod/ESTEID-SK_2015.cer
Binary file not shown.