-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Support custom RequestMatcher in WebAuthn filters #16517
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @leshalv, and thanks for this PR. I've left a inline checklist of JavaDoc polishes. Also, will you please add tests for each of these setter methods that confirm:
- They error appropriately when
null
is given - The filter appropriately uses the provided request matcher.
Note that for the second test, the filter doesn't necessarily need to get triggered; it simply needs to be clear that the given requestMatcher
was used to match the request.
...gframework/security/web/webauthn/authentication/PublicKeyCredentialRequestOptionsFilter.java
Show resolved
Hide resolved
...ngframework/security/web/webauthn/registration/PublicKeyCredentialCreationOptionsFilter.java
Show resolved
Hide resolved
.../java/org/springframework/security/web/webauthn/registration/WebAuthnRegistrationFilter.java
Show resolved
Hide resolved
.../java/org/springframework/security/web/webauthn/registration/WebAuthnRegistrationFilter.java
Show resolved
Hide resolved
...gframework/security/web/webauthn/authentication/PublicKeyCredentialRequestOptionsFilter.java
Outdated
Show resolved
Hide resolved
...ngframework/security/web/webauthn/registration/PublicKeyCredentialCreationOptionsFilter.java
Show resolved
Hide resolved
.../java/org/springframework/security/web/webauthn/registration/WebAuthnRegistrationFilter.java
Outdated
Show resolved
Hide resolved
.../java/org/springframework/security/web/webauthn/registration/WebAuthnRegistrationFilter.java
Outdated
Show resolved
Hide resolved
Is there anything else that needs to be changed now? @jzheaux |
Thanks for the updates, @leshalv! Yes, please add the tests I described here: #16517 (review) |
@jzheaux Take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is coming along, @leshalv! Thanks for the updates. I've left some additional feedback inline to further improve the tests.
...mework/security/web/webauthn/registration/PublicKeyCredentialCreationOptionsFilterTests.java
Outdated
Show resolved
Hide resolved
...gframework/security/web/webauthn/authentication/PublicKeyCredentialRequestOptionsFilter.java
Show resolved
Hide resolved
.../org/springframework/security/web/webauthn/registration/WebAuthnRegistrationFilterTests.java
Outdated
Show resolved
Hide resolved
Closes spring-projectsgh-16517 Signed-off-by: smallbun <[email protected]>
Closes spring-projectsgh-16517 Signed-off-by: smallbun <[email protected]>
Nice work, @leshalv! Note that I've rebased your branch and squashed the commits down to one. The last thing that is needed is for you to do is correct the commit signature. It appears your git username and email don't match the signature:
The author and the signature need to be the same. Because you are working on |
Closes spring-projectsgh-16517 Signed-off-by: topiam <[email protected]>
f4fa2ff
to
929b4a8
Compare
Author: topiam <[email protected]> Signed-off-by: topiam <[email protected]>
Signed-off-by: topiam <[email protected]>
Signed-off-by: topiam <[email protected]>
Signed-off-by: topiam <[email protected]>
No description provided.