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

fix: backport to core 6.0 #151

Merged
merged 1 commit into from
Mar 29, 2024
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [3.0.2] - 2024-03-29

- Adds `appIdentifier` param to `getUserIdMappingForSuperTokensIds`
- Adds a new `useStaticKey` param to `updateSessionInfo_Transaction`
- This enables smooth switching between `useDynamicAccessTokenSigningKey` settings by allowing refresh calls to
change the signing key type of a session

## [3.0.1] - 2023-07-04

- Updates `TenantConfig` toJson function to protect core config as well.
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 = "3.0.1"
version = "3.0.2"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ public interface SessionNoSQLStorage_1 extends SessionStorage, NoSQLStorage_1 {
SessionInfoWithLastUpdated getSessionInfo_Transaction(String sessionHandle) throws StorageQueryException;

boolean updateSessionInfo_Transaction(String sessionHandle, String refreshTokenHash2, long expiry,
String lastUpdatedSign) throws StorageQueryException;
String lastUpdatedSign, boolean useStaticKey) throws StorageQueryException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ SessionInfo getSessionInfo_Transaction(TenantIdentifier tenantIdentifier, Transa

void updateSessionInfo_Transaction(TenantIdentifier tenantIdentifier, TransactionConnection con,
String sessionHandle, String refreshTokenHash2,
long expiry) throws StorageQueryException;
long expiry, boolean useStaticKey) throws StorageQueryException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ boolean updateOrDeleteExternalUserIdInfo(AppIdentifier appIdentifier, String use
// This function will be used to retrieve the userId mapping for a list of userIds. The key of the HashMap will be
// superTokensUserId and the value will be the externalUserId. If a mapping does not exist for an input userId,
// it will not be in a part of the returned HashMap
HashMap<String, String> getUserIdMappingForSuperTokensIds(ArrayList<String> userIds) throws StorageQueryException;
HashMap<String, String> getUserIdMappingForSuperTokensIds(AppIdentifier appIdentifier, ArrayList<String> userIds) throws StorageQueryException;

}
Loading