Skip to content

Unify expiration handling for SingleUseObjects#12230

Merged
hmlnarik merged 2 commits intokeycloak:mainfrom
mhajas:12205-Unify-expiration-for-SingleUseObjects
Jun 20, 2022
Merged

Unify expiration handling for SingleUseObjects#12230
hmlnarik merged 2 commits intokeycloak:mainfrom
mhajas:12205-Unify-expiration-for-SingleUseObjects

Conversation

@mhajas
Copy link
Copy Markdown
Contributor

@mhajas mhajas commented May 27, 2022

Closes #12205
Closes #12563

Copy link
Copy Markdown
Contributor

@martin-kanis martin-kanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mhajas. I have one question.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before, when expiration was not set, some providers used 0 as a default which meant the entity is expired. Now it is the exact opposite. Is this on purpose?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. However, the behaviour you described conflicts with Javadoc here. We should discuss this, I am adding discussion point to the meeting today.

@mhajas mhajas force-pushed the 12205-Unify-expiration-for-SingleUseObjects branch 2 times, most recently from dcfde80 to e13d359 Compare June 20, 2022 07:56
Comment thread model/map/src/main/java/org/keycloak/models/map/events/MapEventStoreProvider.java Outdated
Comment thread testsuite/model/src/test/java/org/keycloak/testsuite/model/KeycloakModelTest.java Outdated
@mhajas mhajas force-pushed the 12205-Unify-expiration-for-SingleUseObjects branch 2 times, most recently from 534d23b to 3ca0ef7 Compare June 20, 2022 10:06
Copy link
Copy Markdown
Contributor

@hmlnarik hmlnarik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR @mhajas! Great job!

@hmlnarik hmlnarik merged commit 0719d3e into keycloak:main Jun 20, 2022
@mhajas mhajas deleted the 12205-Unify-expiration-for-SingleUseObjects branch July 7, 2022 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make expiration check automatic within each storage implementation Unify expiration for SingleUseObjects

3 participants