Skip to content

Commit f4fa2ff

Browse files
author
topiam
committed
Support Custom RequestMatchers for WebAuthn
1 parent 6a6a9e3 commit f4fa2ff

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

web/src/test/java/org/springframework/security/web/webauthn/authentication/PublicKeyCredentialRequestOptionsFilterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
105105
RequestMatcher requestMatcher = mock(RequestMatcher.class);
106106
this.filter.setRequestMatcher(requestMatcher);
107107
FilterChain mock = mock(FilterChain.class);
108-
this.filter.doFilter(request, response, mock);
108+
this.filter.doFilter(this.request, this.response, mock);
109109
verify(requestMatcher).matches(any());
110110
}
111111

web/src/test/java/org/springframework/security/web/webauthn/registration/PublicKeyCredentialCreationOptionsFilterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
9595
RequestMatcher requestMatcher = mock(RequestMatcher.class);
9696
this.filter.setRequestMatcher(requestMatcher);
9797
FilterChain mock = mock(FilterChain.class);
98-
this.filter.doFilter(request, response, mock);
98+
this.filter.doFilter(this.request, this.response, mock);
9999
verify(requestMatcher).matches(any());
100100
}
101101

web/src/test/java/org/springframework/security/web/webauthn/registration/WebAuthnRegistrationFilterTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void doFilterWhenCustomRequestRegisterCredentialMatcherThenUses() throws
116116
RequestMatcher requestMatcher = mock(RequestMatcher.class);
117117
this.filter.setRegisterCredentialMatcher(requestMatcher);
118118
FilterChain mock = mock(FilterChain.class);
119-
this.filter.doFilter(request, response, mock);
119+
this.filter.doFilter(this.request, this.response, mock);
120120
verify(requestMatcher).matches(any());
121121
}
122122

@@ -125,7 +125,7 @@ public void doFilterWhenCustomRequestRemoveCredentialMatcherThenUses() throws Ex
125125
RequestMatcher requestMatcher = mock(RequestMatcher.class);
126126
this.filter.setRemoveCredentialMatcher(requestMatcher);
127127
FilterChain mock = mock(FilterChain.class);
128-
this.filter.doFilter(request, response, mock);
128+
this.filter.doFilter(this.request, this.response, mock);
129129
verify(requestMatcher).matches(any());
130130
}
131131

0 commit comments

Comments
 (0)