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

webauthn: use DefaultResourcesFilter without reflection #15970

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Kehrlann
Copy link
Contributor

@Kehrlann Kehrlann commented Oct 22, 2024

reviewer: @rwinch

Description

Use DefaultResourcesFilter with a proper static method for webauthn pages.

Note that the filter used to be registered only when the DefaultLoginPageGeneratingFilter was registered. It is now always used, because the DefaultWebAuthnRegistrationPageGeneratingFilter uses the javascript, and that file is always present. Also note that while the registration page is after the AuthorizationFilter, the javascript will always be publicly served, because, when the login page is served, it needs the javascript to be publicly accessible.

- Unconditionally use the DefaultResourcesFilter, because the javascript file is required by the
  DefaultWebAythnPageGeneratingFilter, which is always registered.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants