Skip to content

Commit

Permalink
Merge pull request #138 from wultra/issues/merge-upstream
Browse files Browse the repository at this point in the history
Merge upstream
  • Loading branch information
banterCZ authored Feb 9, 2024
2 parents 7076750 + f1e78ed commit ea1de5b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ibm-semeru-runtimes:open-17.0.9_9-jre
FROM ibm-semeru-runtimes:open-21.0.1_12-jre
LABEL maintainer="[email protected]"

# Prepare environment variables
Expand Down
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 Enrollment Server migration instructions.

- [PowerAuth Enrollment Server 1.7.0](./PowerAuth-Enrollment-Server-1.7.0.md)
- [PowerAuth Enrollment Server 1.6.0](./PowerAuth-Enrollment-Server-1.6.0.md)
- [PowerAuth Enrollment Server 1.5.0](./PowerAuth-Enrollment-Server-1.5.0.md)
- [PowerAuth Enrollment Server 1.4.0](./PowerAuth-Enrollment-Server-1.4.0.md)
12 changes: 12 additions & 0 deletions docs/PowerAuth-Enrollment-Server-1.7.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Migration from 1.6.x to 1.7.x

This guide contains instructions for migration from PowerAuth Enrollment Server version `1.6.x` to version `1.7.0`.


## REST API


### Register for Push Messages (Token)

The endpoint `POST /api/push/device/register/token` now strictly validates `platform` against values `ios`, `android` or `huawei`.
If you use the PowerAuth SDK, you should not be affected.
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,22 @@ public class PushRegisterRequest {
private Platform platform;

/**
* The push token is the value received from APNS or FCM services without any modification.
* The push token is the value received from APNS, FCM, or HMS services without any modification.
*/
@NotBlank
@ToString.Exclude
@Schema(description = "The push token is the value received from APNS or FCM services without any modification.")
@Schema(description = "The push token is the value received from APNS, FCM, or HMS services without any modification.")
private String token;

public enum Platform {
@JsonProperty("ios")
IOS,

@JsonProperty("android")
ANDROID
ANDROID,

@JsonProperty("huawei")
HUAWEI
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ private static MobilePlatform convert(final PushRegisterRequest.Platform source)
return switch (source) {
case IOS -> MobilePlatform.IOS;
case ANDROID -> MobilePlatform.ANDROID;
case HUAWEI -> MobilePlatform.HUAWEI;
};
}

Expand Down

0 comments on commit ea1de5b

Please sign in to comment.