8000 Deprecate AuthenticatedClientSessionModel timestamp · rpjicond/keycloak@5300754 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5300754

Browse files
pruivoahus1
andauthored
Deprecate AuthenticatedClientSessionModel timestamp
Closes keycloak#42815 Signed-off-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com> Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com> Co-authored-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com> Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
1 parent 0baeff1 commit 5300754

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

‎docs/documentation/upgrading/topics/changes/changes-26_4_0.adoc‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
339339

340340
As an alternative, use the `cache-embedded-offline-sessions-max-count` and `cache-embedded-offline-client-sessions-max-count` options to limit the memory usage if the default of 10,000 cache offline user and client sessions does not work in your scenario.
341341

342+
=== Timestamp in the AuthenticatedClientSessionModel
343+
344+
The timestamp of the last refresh token update of OpenID Connect clients is currently available via `AuthenticatedClientSessionModel#getTimestamp()` and `AuthenticatedClientSessionModel#setTimestamp()`.
345+
346+
This is now deprecated for removal without a replacement.
347+
342348
=== Passkeys Conditional UI Authenticator requires a feature
343349

344350
The *Passkeys Conditional UI Authenticator* authenticator was deprecated in the version 26.3.0, but you can still use it if you enable

‎server-spi/src/main/java/org/keycloak/models/AuthenticatedClientSessionModel.java‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,20 @@ default boolean isUserSessionRememberMe() {
5656
return Boolean.parseBoolean(getNote(USER_SESSION_REMEMBER_ME_NOTE));
5757
}
5858

59+
/**
60+
* @deprecated for removed, without replacement.
61+
*/
62+
@Deprecated(since = "26.4", forRemoval = true)
63+
// This data may not be required as we can check the expiry time in the refresh token.
64+
// If so, this method can be removed; otherwise we keep the method and remove the deprecation notice.
5965
int getTimestamp();
6066

6167
/**
6268
* Set the timestamp for the client session.
6369
* If the timestamp is smaller or equal than the current timestamp, the operation is ignored.
70+
* @deprecated for removed, without replacement.
6471
*/
72+
@Deprecated(since = "26.4", forRemoval = true)
6573
void setTimestamp(int timestamp);
6674

6775
/**

0 commit comments

Comments
 (0)
0