Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR-1814 Add extra logging for debug #25

Merged
merged 1 commit into from
Jul 3, 2024
Merged
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
@@ -1,7 +1,7 @@
package org.folio.ncip.services;


import org.apache.log4j.Logger;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.extensiblecatalog.ncip.v2.service.AgencyId;
import org.extensiblecatalog.ncip.v2.service.AgencyUserPrivilegeType;
import org.extensiblecatalog.ncip.v2.service.AuthenticationInput;
Expand Down Expand Up @@ -42,7 +42,7 @@

public class FolioLookupUserService extends FolioNcipService implements LookupUserService {

private static final Logger logger = Logger.getLogger(FolioLookupUserService.class);
private static final Logger logger = LogManager.getLogger(FolioLookupUserService.class);
public long reqTimeoutMs;
public JsonObject obj;
private Properties ncipProperties;
Expand Down Expand Up @@ -385,10 +385,14 @@ private String getOkMessage(String agencyId) {

private void checkPinIfNeeded(LookupUserInitiationData initData, FolioRemoteServiceManager serviceManager,
String userId) throws FolioNcipException {
logger.info("Start PIN check");
if (initData.getAuthenticationInputs() != null) {
logger.info("Have auth inputs");
for (AuthenticationInput authenticationInput : initData.getAuthenticationInputs()) {
String authType = authenticationInput.getAuthenticationInputType().getValue();
logger.info("Input type {}", authType);
if (Constants.AUTH_TYPE_PIN.equalsIgnoreCase(authType)) {
logger.info("PIN check needed");
String authValue = authenticationInput.getAuthenticationInputData();
serviceManager.checkUserPin(userId, authValue);
}
Expand Down
Loading