Skip to content

Commit 10245cc

Browse files
#567 Removes console log
1 parent 904004d commit 10245cc

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

myconext-server/src/main/java/myconext/tiqr/TiqrController.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,9 @@ public ResponseEntity<StartAuthentication> startAuthenticationForSP(HttpServletR
418418
@Hidden
419419
public ResponseEntity<StartAuthentication> startAuthentication(HttpServletRequest request,
420420
@Valid @RequestBody TiqrRequest tiqrRequest) throws IOException, WriterException, TiqrException {
421-
SamlAuthenticationRequest theRequest = authenticationRequestRepository.findByIdAndNotExpired(tiqrRequest.getAuthenticationRequestId())
421+
SamlAuthenticationRequest samlAuthenticationRequest = authenticationRequestRepository.findByIdAndNotExpired(tiqrRequest.getAuthenticationRequestId())
422422
.orElseThrow(() -> new ExpiredAuthenticationException("Expired tiqrRequest:" + tiqrRequest.getEmail()));
423-
String serviceName = theRequest.getServiceName();
424-
System.out.println("Service name: " + serviceName);
423+
String serviceName = samlAuthenticationRequest.getServiceName();
425424

426425
String email = tiqrRequest.getEmail().trim();
427426
User user = userRepository.findUserByEmailAndRateLimitedFalse(email)
@@ -441,7 +440,7 @@ private ResponseEntity<StartAuthentication> doStartAuthentication(HttpServletReq
441440
// Reset any outstanding suspensions
442441
rateLimitEnforcer.unsuspendUserAfterTiqrSuccess(user);
443442
boolean sendPushNotification = tiqrCookieValid.get() && this.tiqrConfiguration.isPushNotificationsEnabled();
444-
443+
445444
// Start Tiqr authentication -- pass the SP name?
446445
Authentication authentication = tiqrService.startAuthentication(
447446
user.getId(),

0 commit comments

Comments
 (0)