Support custom RequestMatcher in WebAuthn filters#16517
Support custom RequestMatcher in WebAuthn filters#16517leshalv wants to merge 5 commits intospring-projects:mainfrom
Conversation
There was a problem hiding this comment.
Hi, @leshalv, and thanks for this PR. I've left an inline checklist of JavaDoc polishes. Also, will you please add tests for each of these setter methods that confirm:
- They error appropriately when
nullis 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 |
...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]>
|
Thanks @leshalv for the PR! I squashed your commits and merged them in 85f0f3f and then added a polish to correct the failing build e569c7a My apologies about the confusion with your |
No description provided.