+
Skip to content

Remove acrValues from initialization options #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

jonkoops
Copy link
Contributor

Removes the acrValues option during initialization, as it has never worked correctly. This is technically a breaking change, but because the functionality was broken since its first incarnation, we can safely assume that this will have little to no impact.

This is part of a larger effort to get rid of options that are duplicated between init() and createLoginUrl() (or login()). These duplications only exist for those use cases where calling init() triggers a login(), which is a side effect that I want to explicitly get rid of in the future.

Closes #72

Closes keycloak#72

Signed-off-by: Jon Koops <jonkoops@gmail.com>
@jonkoops jonkoops requested review from Copilot and a team April 25, 2025 11:04
@jonkoops jonkoops self-assigned this Apr 25, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the deprecated acrValues option from the initialization process, ensuring that acr_values are now only handled via the options passed to createLoginUrl.

  • Removed the assignment of acrValues from initOptions in the Keycloak constructor
  • Adjusted the URL query parameter generation to only use options.acrValues
Files not reviewed (1)
  • docs/guides/securing-apps/javascript-adapter.adoc: Language not supported

@jonkoops
Copy link
Contributor Author

@thomasdarimont FYI

Copy link
Contributor

@rmartinc rmartinc left a comment

Choose a reason for hiding this comment

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

As you say it is a breaking change, but I also think that if it has never worked and nobody complained, deleting it is safe.

@jonkoops jonkoops merged commit e2fcca5 into keycloak:main Apr 25, 2025
4 checks passed
@jonkoops jonkoops deleted the remove-acr-values-init branch April 25, 2025 14:16
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.

Passing acrValues during initialization throws error
2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载