+
Skip to content

Allow scope values with 'openid' in their name #75

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

Closes #74

Closes keycloak#74

Signed-off-by: Jon Koops <jonkoops@gmail.com>
@jonkoops jonkoops requested a review from Copilot April 25, 2025 11:42
@jonkoops jonkoops self-assigned this Apr 25, 2025
@jonkoops jonkoops requested a review from a team April 25, 2025 11:42
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 addresses issue #74 by modifying how scope values are handled during Keycloak initialization so that any provided scope automatically includes "openid". Key changes include updating the test assertions in login-url.spec.ts and refactoring keycloak.js to split and adjust scope values.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/tests/login-url.spec.ts Updates expected scope to include additional values (e.g., "openidlike") while ensuring "openid" is prepended
lib/keycloak.js Refactors scope processing logic to split the scope string, ensure "openid" is included, and then reassemble the string

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.

Thanks @jonkoops! LGTM!

@jonkoops jonkoops merged commit d25636d into keycloak:main Apr 25, 2025
4 checks passed
@jonkoops jonkoops deleted the allow-openid-like-scope-value branch April 25, 2025 14:17
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 a scope value with 'openid' in the name cases the default scope to be omitted
2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载