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

Merge develop to master #1711

Merged
merged 39 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
e7bf593
Bump net.logstash.logback:logstash-logback-encoder from 7.4 to 8.0
dependabot[bot] Jul 29, 2024
0cda02d
Fix #1656: Set develop version to 1.9.0-SNAPSHOT
banterCZ Jul 29, 2024
6e46de9
Merge pull request #1667 from wultra/issues/1656-version-1.9.0-SNAPSHOT
banterCZ Jul 29, 2024
a36adc5
Fix #1668: Add configuration to disable websockets (#1669)
romanstrobl Jul 31, 2024
bbaddc7
Fix #1683: Provide default lang.json for external resources (#1684)
romanstrobl Aug 6, 2024
6cbf405
Fix #1687: Error java.net.MalformedURLException: unknown protocol: cl…
romanstrobl Aug 8, 2024
77bbe49
Merge pull request #1663 from wultra/dependabot/maven/net.logstash.lo…
dependabot[bot] Aug 20, 2024
2c9c214
Bump org.passay:passay from 1.6.4 to 1.6.5
dependabot[bot] Aug 26, 2024
5f1132d
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Aug 26, 2024
f7105fb
Bump io.swagger.core.v3:swagger-annotations-jakarta
dependabot[bot] Sep 2, 2024
ed98538
Merge pull request #1697 from wultra/dependabot/maven/io.swagger.core…
dependabot[bot] Sep 2, 2024
e29c4d0
Merge pull request #1695 from wultra/dependabot/maven/org.springframe…
dependabot[bot] Sep 2, 2024
c8eef16
Merge pull request #1694 from wultra/dependabot/maven/org.passay-pass…
dependabot[bot] Sep 2, 2024
a6468bc
Bump com.github.eirslett:frontend-maven-plugin from 1.15.0 to 1.15.1
dependabot[bot] Sep 23, 2024
2dda5d5
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Sep 23, 2024
d6952d9
Merge pull request #1702 from wultra/dependabot/maven/org.springframe…
dependabot[bot] Sep 23, 2024
bec7238
Merge pull request #1701 from wultra/dependabot/maven/com.github.eirs…
dependabot[bot] Sep 23, 2024
1ed4be0
Bump de.skuzzle.enforcer:restrict-imports-enforcer-rule
dependabot[bot] Sep 30, 2024
d0c2172
Bump io.swagger.core.v3:swagger-annotations-jakarta
dependabot[bot] Sep 30, 2024
c1c977b
Merge pull request #1704 from wultra/dependabot/maven/io.swagger.core…
dependabot[bot] Sep 30, 2024
cf05d36
Merge pull request #1703 from wultra/dependabot/maven/de.skuzzle.enfo…
dependabot[bot] Sep 30, 2024
ae1b51f
Add migration instructions from 1.8.x to 1.9.x
banterCZ Oct 2, 2024
99d9f3c
Merge pull request #1707 from wultra/issues/migration-instructions
banterCZ Oct 2, 2024
235972a
Bump wultra-core.version from 1.11.0-SNAPSHOT to 1.11.0
dependabot[bot] Oct 7, 2024
b7666c6
Bump io.swagger.core.v3:swagger-annotations-jakarta
dependabot[bot] Oct 7, 2024
2199f5f
Merge pull request #1708 from wultra/dependabot/maven/wultra-core.ver…
dependabot[bot] Oct 7, 2024
706c0e7
Merge pull request #1709 from wultra/dependabot/maven/io.swagger.core…
dependabot[bot] Oct 7, 2024
77fe031
Fix #1712: Set release version to 1.9.0
banterCZ Oct 11, 2024
06a54a6
Bump io.getlime.security:powerauth-java-crypto
dependabot[bot] Oct 14, 2024
7fba1fb
Merge pull request #1716 from wultra/dependabot/maven/io.getlime.secu…
dependabot[bot] Oct 14, 2024
558f13f
Fix #1717: Add support for bcrypt to store the password (#1718)
romanstrobl Oct 18, 2024
f629fdf
Bump org.passay:passay from 1.6.5 to 1.6.6
dependabot[bot] Oct 21, 2024
a93ffc7
Merge pull request #1719 from wultra/dependabot/maven/org.passay-pass…
dependabot[bot] Oct 21, 2024
87af1eb
Fix #1720: Update documentation for bcrypt
romanstrobl Oct 23, 2024
c7d6114
Merge pull request #1721 from wultra/issues/1720-update-documentation…
romanstrobl Oct 23, 2024
c916175
Fix scp-deploy (#1722)
banterCZ Oct 23, 2024
22f23ce
Fix #1714: Update Wultra dependencies
banterCZ Oct 11, 2024
eecf2f5
Merge pull request #1715 from wultra/issues/1714-wultra-dependencies
banterCZ Oct 25, 2024
cac0c52
Merge pull request #1723 from wultra/issues/1712-version-1.9.0
banterCZ Oct 25, 2024
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
1 change: 1 addition & 0 deletions docs/Migration-Instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

This page contains PowerAuth Web Flow migration instructions.

- [PowerAuth Web Flow 1.9.0](./Web-Flow-1.9.0.md)
- [PowerAuth Web Flow 1.8.0](./Web-Flow-1.8.0.md)
- [PowerAuth Web Flow 1.7.0](./Web-Flow-1.7.0.md)
- [PowerAuth Web Flow 1.6.0](./Web-Flow-1.6.0.md)
Expand Down
5 changes: 5 additions & 0 deletions docs/Web-Flow-1.9.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Migration from 1.8.0 to 1.9.0

This guide contains instructions for migration from PowerAuth WebFlow version `1.8.x` to version `1.9.0`.

There are no database changes needed for this version.
20 changes: 10 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

<groupId>io.getlime.security</groupId>
<artifactId>powerauth-webflow-parent</artifactId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
<packaging>pom</packaging>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.2</version>
<version>3.3.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down Expand Up @@ -93,21 +93,21 @@
<maven.compiler.target>17</maven.compiler.target>
<bcprov-jdk18on.version>1.78.1</bcprov-jdk18on.version>
<zxing.version>3.5.3</zxing.version>
<passay.version>1.6.4</passay.version>
<passay.version>1.6.5</passay.version>

<!-- Documentation Dependencies -->
<springdoc-openapi-starter-webmvc-ui.version>2.6.0</springdoc-openapi-starter-webmvc-ui.version>
<swagger-annotations-jakarta.version>2.2.22</swagger-annotations-jakarta.version>
<swagger-annotations-jakarta.version>2.2.25</swagger-annotations-jakarta.version>

<moneta.version>1.4.4</moneta.version>
<owasp-java-html-sanitizer.version>20240325.1</owasp-java-html-sanitizer.version>
<logstash.version>7.4</logstash.version>
<logstash.version>8.0</logstash.version>

<!-- Wultra dependencies -->
<wultra-core.version>1.10.0</wultra-core.version>
<powerauth.version>1.8.0</powerauth.version>
<powerauth-crypto.version>1.8.0</powerauth-crypto.version>
<powerauth-push.version>1.8.0</powerauth-push.version>
<wultra-core.version>1.11.0</wultra-core.version>
<powerauth.version>1.9.0-SNAPSHOT</powerauth.version>
<powerauth-crypto.version>1.9.0-SNAPSHOT</powerauth-crypto.version>
<powerauth-push.version>1.9.0-SNAPSHOT</powerauth-push.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -345,7 +345,7 @@
<dependency>
<groupId>de.skuzzle.enforcer</groupId>
<artifactId>restrict-imports-enforcer-rule</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</dependency>
</dependencies>
<executions>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-data-adapter-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-data-adapter-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-mtoken-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-nextstep-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<artifactId>powerauth-nextstep-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-nextstep-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<groupId>io.getlime.security</groupId>
<artifactId>powerauth-webflow-parent</artifactId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-nextstep/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>io.getlime.security</groupId>
<artifactId>powerauth-webflow-parent</artifactId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-tpp-engine-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<name>powerauth-tpp-engine-client</name>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-tpp-engine-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<name>powerauth-tpp-engine-model</name>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-tpp-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>io.getlime.security</groupId>
<artifactId>powerauth-webflow-parent</artifactId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-webflow-authentication-approval-sca/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<name>powerauth-webflow-authentication-approval-sca</name>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-webflow-authentication-consent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<artifactId>powerauth-webflow-authentication-consent</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-webflow-authentication-form/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<name>powerauth-webflow-authentication-form</name>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-webflow-authentication-init/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<name>powerauth-webflow-authentication-init</name>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-webflow-authentication-login-sca/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<name>powerauth-webflow-authentication-login-sca</name>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-webflow-authentication-mtoken/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<artifactId>powerauth-webflow-authentication-mtoken</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
package io.getlime.security.powerauth.lib.webflow.authentication.mtoken.controller;

import io.getlime.security.powerauth.lib.webflow.authentication.model.request.WebSocketRegistrationRequest;
import io.getlime.security.powerauth.lib.webflow.authentication.service.WebSocketMessageService;
import io.getlime.security.powerauth.lib.webflow.authentication.service.websocket.WebSocketMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.simp.SimpMessageHeaderAccessor;
import org.springframework.stereotype.Controller;
Expand All @@ -30,6 +31,7 @@
* @author Roman Strobl
*/
@Controller
@ConditionalOnProperty(name = "powerauth.webflow.websockets.enabled", havingValue = "true")
public class MessageController {

private final WebSocketMessageService webSocketMessageService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
import io.getlime.security.powerauth.lib.webflow.authentication.mtoken.model.response.MobileTokenAuthenticationResponse;
import io.getlime.security.powerauth.lib.webflow.authentication.service.AuthMethodQueryService;
import io.getlime.security.powerauth.lib.webflow.authentication.service.PowerAuthOperationService;
import io.getlime.security.powerauth.lib.webflow.authentication.service.WebSocketMessageService;
import io.getlime.security.powerauth.lib.webflow.authentication.service.websocket.WebSocketMessageService;
import io.getlime.security.powerauth.rest.api.spring.annotation.PowerAuth;
import io.getlime.security.powerauth.rest.api.spring.annotation.PowerAuthToken;
import io.getlime.security.powerauth.rest.api.spring.authentication.PowerAuthActivation;
Expand All @@ -65,6 +65,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
Expand Down Expand Up @@ -95,6 +96,12 @@ public class MobileAppApiController extends AuthMethodController<MobileTokenAuth

private final FormDataConverter formDataConverter = new FormDataConverter();

/**
* WebSocket support configuration.
*/
@Value("${powerauth.webflow.websockets.enabled:true}")
private boolean webSocketSupportEnabled;

/**
* Controller constructor.
* @param webSocketMessageService Web Socket message service.
Expand Down Expand Up @@ -305,7 +312,9 @@ private Map<String, GetOperationConfigDetailResponse> getOperationConfigs(List<G
throw new OperationIsAlreadyFailedException("Operation approval has failed");
}
final AuthOperationResponse updateOperationResponse = authorize(operationId, userId, operation.getOrganizationId(), authInstruments, authenticationContext, null);
webSocketMessageService.notifyAuthorizationComplete(operationId, updateOperationResponse.getAuthResult());
if (webSocketSupportEnabled) {
webSocketMessageService.notifyAuthorizationComplete(operationId, updateOperationResponse.getAuthResult());
}
return new Response();
} else {
boolean approvalFailSucceeded = powerAuthOperationService.failApprovalForOperation(operation);
Expand Down Expand Up @@ -349,7 +358,7 @@ private Map<String, GetOperationConfigDetailResponse> getOperationConfigs(List<G
final GetOperationDetailResponse operation = getOperation(operationId);
boolean rejectSucceeded = powerAuthOperationService.rejectOperation(operation, activationId);
final UpdateOperationResponse updateOperationResponse = cancelAuthorization(operationId, userId, OperationCancelReason.fromString(request.getRequestObject().getReason()), null, false);
if (updateOperationResponse != null) {
if (webSocketSupportEnabled && updateOperationResponse != null) {
webSocketMessageService.notifyAuthorizationComplete(operationId, updateOperationResponse.getResult());
}
if (!rejectSucceeded) {
Expand Down
2 changes: 1 addition & 1 deletion powerauth-webflow-authentication-operation-review/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<artifactId>powerauth-webflow-authentication-operation-review</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-webflow-authentication-sms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<artifactId>powerauth-webflow-authentication-sms</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion powerauth-webflow-authentication/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<artifactId>powerauth-webflow-parent</artifactId>
<groupId>io.getlime.security</groupId>
<version>1.8.0</version>
<version>1.9.0-SNAPSHOT</version>
</parent>

<groupId>io.getlime.security</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ public class WebFlowServicesConfiguration {
@Value("${powerauth.webflow.pa.operations.enabled}")
private boolean powerAuthOperationSupportEnabled;

/**
* WebSocket support configuration.
*/
@Value("${powerauth.webflow.websockets.enabled:true}")
private boolean webSocketSupportEnabled;

/**
* Authentication type which configures how username and password is transferred for verification.
*/
Expand Down Expand Up @@ -219,6 +225,14 @@ public boolean isPowerAuthOperationSupportEnabled() {
return powerAuthOperationSupportEnabled;
}

/**
* Get whether WebSocket support is enabled.
* @return Whether WebSocket support is enabled.
*/
public boolean isWebSocketSupportEnabled() {
return webSocketSupportEnabled;
}

/**
* Get authentication type which configures how username and password is transferred for verification.
* @return Authentication type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import io.getlime.security.powerauth.lib.webflow.authentication.service.OperationCancellationService;
import io.getlime.security.powerauth.lib.webflow.authentication.service.OperationSessionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.CloseStatus;
Expand All @@ -34,6 +35,7 @@
* @author Roman Strobl, [email protected]
*/
@Component
@ConditionalOnProperty(name = "powerauth.webflow.websockets.enabled", havingValue = "true")
public class WebSocketDisconnectListener implements ApplicationListener<SessionDisconnectEvent> {

private final OperationSessionService operationSessionService;
Expand Down
Loading
Loading