File tree Expand file tree Collapse file tree
myconext-server/src/main/java/myconext/tiqr Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (),
You can’t perform that action at this time.
0 commit comments