-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0fbaba
commit bafe57b
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
||
|
@@ -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) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -35,6 +36,7 @@ | |
* @author Petr Dvorak, [email protected] | ||
*/ | ||
@Service | ||
@Slf4j | ||
@ConditionalOnProperty(name = "powerauth.webflow.websockets.enabled", havingValue = "true") | ||
public class WebSocketMessageServiceImpl implements WebSocketMessageService { | ||
|
||
|
@@ -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."); | ||
} | ||
|
||
/** | ||
|