Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
romanstrobl committed Jul 31, 2024
1 parent b0fbaba commit bafe57b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package io.getlime.security.powerauth.lib.webflow.authentication.service.websocket;

import io.getlime.security.powerauth.lib.nextstep.model.enumeration.AuthResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

Expand All @@ -26,9 +27,13 @@
* @author Roman Strobl, [email protected]
*/
@Service
@Slf4j
@ConditionalOnProperty(name = "powerauth.webflow.websockets.enabled", havingValue = "false", matchIfMissing = true)
public class WebSocketMessageServiceDummy implements WebSocketMessageService {

{
logger.info("WebSocketMessageServiceDummy was initialized.");
}

@Override
public void notifyAuthorizationComplete(String operationId, AuthResult authResult) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import io.getlime.security.powerauth.lib.webflow.authentication.model.response.WebSocketAuthorizationResponse;
import io.getlime.security.powerauth.lib.webflow.authentication.model.response.WebSocketRegistrationResponse;
import io.getlime.security.powerauth.lib.webflow.authentication.service.OperationSessionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.messaging.MessageHeaders;
Expand All @@ -35,6 +36,7 @@
* @author Petr Dvorak, [email protected]
*/
@Service
@Slf4j
@ConditionalOnProperty(name = "powerauth.webflow.websockets.enabled", havingValue = "true")
public class WebSocketMessageServiceImpl implements WebSocketMessageService {

Expand All @@ -50,6 +52,7 @@ public class WebSocketMessageServiceImpl implements WebSocketMessageService {
public WebSocketMessageServiceImpl(SimpMessagingTemplate websocket, OperationSessionService operationSessionService) {
this.websocket = websocket;
this.operationSessionService = operationSessionService;
logger.info("WebSocketMessageServiceImpl was initialized.");
}

/**
Expand Down

0 comments on commit bafe57b

Please sign in to comment.