Skip to content

Commit f81959f

Browse files
topiamleshalv
authored andcommitted
Add setRequestMatcher to PublicKeyCredentialCreationOptionsFilter
Signed-off-by: smallbun <[email protected]>
1 parent 10394c8 commit f81959f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

web/src/main/java/org/springframework/security/web/webauthn/registration/PublicKeyCredentialCreationOptionsFilter.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@ public PublicKeyCredentialCreationOptionsFilter(WebAuthnRelyingPartyOperations r
8282
this.rpOperations = rpOperations;
8383
}
8484

85+
/**
86+
* Sets the {@link RequestMatcher} used to trigger this filter.
87+
* @param requestMatcher the {@link RequestMatcher} to use
88+
*/
89+
public void setRequestMatcher(RequestMatcher requestMatcher) {
90+
Assert.notNull(requestMatcher, "requestMatcher cannot be null");
91+
this.matcher = requestMatcher;
92+
}
93+
8594
@Override
8695
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
8796
throws ServletException, IOException {

0 commit comments

Comments
 (0)