Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [4.0.4] - 2023-11-28

- Removes the error `Please use a CDI version that is greater than the one in which account linking feature was enabled` while querying users with linked accounts, but from an older version of CDI. We return details of the oldest login method in this case.

## [4.0.3] - 2023-11-10

- Adds function to update userId to externalUserId for email verification
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java-library'
}

version = "4.0.3"
version = "4.0.4"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,12 @@ public JsonObject toJsonWithoutAccountLinking() {
if (!didCallSetExternalUserId) {
throw new RuntimeException("Found a bug: Did you forget to call setExternalUserId?");
}
// this is for older CDI versions.
if (this.loginMethods.length != 1) {
throw new IllegalStateException(
"Please use a CDI version that is greater than the one in which account linking feature was " +
"enabled.");
// this is for older CDI versions.
// we are deliberately not throwing this exception to let the core work with older versions of CDI.
// throw new IllegalStateException(
// "Please use a CDI version that is greater than the one in which account linking feature was " +
// "enabled.");
}
LoginMethod loginMethod = loginMethods[0];
JsonObject jsonObject = new JsonObject();
Expand Down