Skip to content
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

Add origin validation logic and tests for WebAuthn #690

Merged
merged 1 commit into from
Feb 16, 2025

Conversation

Spomky
Copy link
Contributor

@Spomky Spomky commented Feb 14, 2025

Introduced AllowedOriginsController and CheckAllowedOrigins class to handle allowed origin validation for WebAuthn ceremonies. Added functional and unit tests to cover various scenarios, including subdomain handling and empty allowed origins. Updated service configuration for consistency by standardizing $service variable usage.

Target branch:
Resolves issue #

  • It is a Bug fix
  • It is a New feature
  • Breaks BC
  • Includes Deprecations

@Spomky Spomky added the enhancement New feature or request label Feb 14, 2025
@Spomky Spomky self-assigned this Feb 14, 2025
@Spomky Spomky added this to the 5.2.0 milestone Feb 14, 2025
@Spomky Spomky linked an issue Feb 16, 2025 that may be closed by this pull request
@Spomky Spomky force-pushed the features/allowed-origins branch from c5e2e94 to 0029a84 Compare February 16, 2025 10:39
Introduced `allowed_origins` and `allow_subdomains` as replacements for `secured_rp_ids`, which is now deprecated and planned for removal in 6.0. Updated dependency injection, configuration definitions, and test cases accordingly. Deprecated relevant methods and classes while ensuring backward compatibility.
@Spomky Spomky force-pushed the features/allowed-origins branch from 0029a84 to 520c51b Compare February 16, 2025 10:41
@Spomky Spomky merged commit 98088fa into 5.2.x Feb 16, 2025
15 checks passed
@Spomky Spomky deleted the features/allowed-origins branch February 16, 2025 10:44
This was referenced Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Android's FIDO2 origin
1 participant