Commit 03f9e391 authored by Larbi Gharib's avatar Larbi Gharib
Browse files

Fix no Certificate on install

Change-Id: I7cb852db69183cd0bb20ee12c4629a2ca93be3d4
parent 7c6576f3
......@@ -88,8 +88,8 @@ public class FilterUtils {
StatementElement statementElement = new StatementElement("username", "=", token.getJWTClaimsSet().getSubject(), "");
statementList.addStatement(statementElement);
User user = dataStore.getUserDao().getObjects(statementList).get(0);
if(certificateAuthority.getLatestCRL().get() != null) {
if(!user.getAccessLevelName().equals("ADMIN") && certificateAuthority.getLatestCRL().get().getRevokedCertificate(user.getCertificate().getSerialNumber()) != null)
if(!user.getAccessLevelName().equals("ADMIN") && certificateAuthority.getLatestCRL().get() != null) {
if(certificateAuthority.getLatestCRL().get().getRevokedCertificate(user.getCertificate().getSerialNumber()) != null)
return false;
}
JWSVerifier jwsVerifier = new RSASSAVerifier(userAuthenticationModule.getAuthModulePubKey());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment