Skip to content

Commit ead4eda

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

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/authentication/PublicKeyCredentialRequestOptionsFilter.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ public PublicKeyCredentialRequestOptionsFilter(WebAuthnRelyingPartyOperations rp
7575
this.rpOptions = rpOptions;
7676
}
7777

78+
/**
79+
* Sets the {@link RequestMatcher} used to trigger this filter.
80+
* @param requestMatcher the {@link RequestMatcher} to use
81+
*/
82+
public void setRequestMatcher(RequestMatcher requestMatcher) {
83+
Assert.notNull(requestMatcher, "requestMatcher cannot be null");
84+
this.matcher = requestMatcher;
85+
}
86+
7887
@Override
7988
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
8089
throws ServletException, IOException {

0 commit comments

Comments
 (0)