Skip to content

Commit

Permalink
fix(jans-fido2): resolved build failure issues
Browse files Browse the repository at this point in the history
Signed-off-by: imran-ishaq <imranishaq024@gmail.com>
  • Loading branch information
imran-ishaq authored and moabu committed Nov 7, 2024
1 parent aa4f663 commit baea6b6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
import io.jans.fido2.service.app.ConfigurationFactory;
import io.jans.fido2.service.verifier.CertificateVerifier;
import io.jans.service.cdi.event.ApplicationInitialized;
import io.jans.service.document.store.model.Document;
import io.jans.service.document.store.service.DBDocumentService;
import io.jans.service.document.store.service.Document;
import io.jans.util.Pair;
import io.jans.util.StringHelper;
import jakarta.enterprise.context.ApplicationScoped;
Expand Down Expand Up @@ -368,14 +368,14 @@ public List<String> saveMetadataServerCertsInDB(String metadataServer, String bl

for (String cert : headerCertificatesX5c) {
Document document = new Document();
document.setDisplayName(metadataServer + "_" + (index++));
document.setFileName(metadataServer + "_" + (index++));
document.setDescription("metadata certificate for " + metadataServer);
document.setJansService(new ArrayList<>(Arrays.asList("Fido2 MDS")));
document.setService(new ArrayList<>(Arrays.asList("Fido2 MDS")));
try {
document.setDocument(cert);
document.setInum(dbDocumentService.generateInumForNewDocument());
document.setDn(dbDocumentService.getDnForDocument(document.getInum()));
document.setJansEnabled(true);
document.setEnabled(true);
dbDocumentService.addDocument(document);
result.add(document.getInum());
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,23 @@ public boolean getBackupEligibilityFlag() {
public void setBackupEligibilityFlag(boolean backupEligibilityFlag) {
this.backupEligibilityFlag = backupEligibilityFlag;
}

public String getOrigin() {
return origin;
}

public void setOrigin(String origin) {
this.origin = origin;
}

public String getRpId() {
return rpId;
}

public void setRpId(String rpId) {
this.rpId = rpId;
}

@Override
public String toString() {
return "Fido2RegistrationData [username=" + username + ", origin=" + origin + ", userId=" + userId + ", challenge=" + challenge
Expand Down

0 comments on commit baea6b6

Please sign in to comment.