Skip to content

Commit

Permalink
feat: Add support to update the signing key type of a session (#136)
Browse files Browse the repository at this point in the history
* feat: make refresh update the signing key type of sessions

* chore: update changelog
  • Loading branch information
porcellus authored Jan 29, 2024
1 parent a24f17b commit 93336d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Adds `createdAt` field to `TOTPDevice`
- TOTPSQLStorage interface changes
- Adds `getDeviceByName_Transaction` and `createDevice_Transaction` functions
- 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

## [4.0.5] - 2023-12-05

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,7 +54,7 @@ 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;

void deleteSessionsOfUser_Transaction(TransactionConnection con, AppIdentifier appIdentifier, String userId)
throws StorageQueryException;
Expand Down

0 comments on commit 93336d8

Please sign in to comment.