Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@stianst
Copy link
Contributor

@stianst stianst commented Jul 9, 2024

Realms and clients can be set to global, class, or method. This needed a little bit of changes to the registry and suppliers around lifecycle management, including adding a way to destroy things with global lifecycle.

I may have even outsmarted myself when implementing the Registry as it actually works if a realm has method lifecycle, while the client has class (or global), as the client is re-created automatically if the realm is deleted.

I did not implement the optimalisation that we don't need to delete a client if a realm is being deleted, that can be done as a follow-up.

Closes #30610

Signed-off-by: stianst [email protected]

@stianst stianst requested a review from a team as a code owner July 9, 2024 09:22
jonkoops
jonkoops previously approved these changes Jul 9, 2024
Copy link
Contributor

@jonkoops jonkoops left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple of notes

@stianst stianst force-pushed the testsuite-poc-configurable-lifecycle branch from 3b00d66 to 897aca3 Compare July 9, 2024 09:53
@stianst stianst force-pushed the testsuite-poc-configurable-lifecycle branch from 897aca3 to 290456e Compare July 9, 2024 09:56
Copy link
Contributor

@jonkoops jonkoops left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@lhanusov lhanusov left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for your fast lifecycle adjustment 👍

@stianst stianst merged commit 2dc37d2 into keycloak:main Jul 9, 2024
stianst added a commit to stianst/keycloak that referenced this pull request Jul 9, 2024
stianst added a commit to stianst/keycloak that referenced this pull request Jul 9, 2024
stianst added a commit to stianst/keycloak that referenced this pull request Jul 9, 2024
@stianst stianst deleted the testsuite-poc-configurable-lifecycle branch July 17, 2024 09:00
Captain-P-Goldfish pushed a commit to Captain-P-Goldfish/keycloak that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testsuite PoC - Support configurable lifecycle for injected entities

4 participants