8000 Automatically retrieve configuration for authorization by jonkoops · Pull Request #34044 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Automatically retrieve configuration for authorization - #34044

Merged
ahus1 merged 1 commit into
keycloak:mainfrom
jonkoops:auto-load-config
Oct 18, 2024
Merged

ahus1 merged 1 commit into
keycloak:mainfrom
jonkoops:auto-load-config

Conversation

@jonkoops
@jonkoops jonkoops commented Oct 17, 2024 •
Copy link
Copy Markdown
Contributor

Modifies the JavaScript authorization client so that it retrieves its configuration lazily. Previously this would happen when a KeycloakAuthorization was constructed, which triggered asynchronous side-effects that could create race conditions when calling methods on the instance.

This change also means that the ready property and .init() method (which was called at time of construction) are no longer relevant. These APIs are now essentially a "no-op" and have been deprecated and slated for removal in the next major.

Closes #14562

Closes keycloak#14562

Signed-off-by: Jon Koops <jonkoops@gmail.com>
@jonkoops
jonkoops requested review from a team as code owners October 17, 2024 12:19
@pedroigor pedroigor left a comment
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.

LGTM.

I'm not sure how much this API is used. Perhaps we can also consider removing it.

@jonkoops
Copy link
Copy Markdown
Contributor Author

I'm not sure how much this API is used. Perhaps we can also consider removing it.

Agreed. Long term we probably will. But in the meantime I want to get Keycloak JS fixed up to a point it is sort of maintainable.

@ahus1
ahus1 merged commit 7657e71 into keycloak:main Oct 18, 2024
@jonkoops
jonkoops deleted the auto-load-config branch October 18, 2024 13:15
jonkoops added a commit to jonkoops/keycloak that referenced this pull request Oct 18, 2024
Closes keycloak#14562

Signed-off-by: Jon Koops <jonkoops@gmail.com>
(cherry picked from commit 7657e71)
jonkoops added a commit that referenced this pull request Oct 29, 2024
Closes #14562

Signed-off-by: Jon Koops <jonkoops@gmail.com>
(cherry picked from commit 7657e71)
@edewit edewit mentioned this pull request Nov 19, 2024
@edewit edewit mentioned this pull request Dec 11, 2024
7F21 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.

Broken Promise implementation for AuthZ JS

4 participants

0