Skip to content

Commit

Permalink
Support Custom RequestMatchers for WebAuthn
Browse files Browse the repository at this point in the history
  • Loading branch information
topiam committed Feb 25, 2025
1 parent 6a6a9e3 commit f4fa2ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
RequestMatcher requestMatcher = mock(RequestMatcher.class);
this.filter.setRequestMatcher(requestMatcher);
FilterChain mock = mock(FilterChain.class);
this.filter.doFilter(request, response, mock);
this.filter.doFilter(this.request, this.response, mock);
verify(requestMatcher).matches(any());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
RequestMatcher requestMatcher = mock(RequestMatcher.class);
this.filter.setRequestMatcher(requestMatcher);
FilterChain mock = mock(FilterChain.class);
this.filter.doFilter(request, response, mock);
this.filter.doFilter(this.request, this.response, mock);
verify(requestMatcher).matches(any());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void doFilterWhenCustomRequestRegisterCredentialMatcherThenUses() throws
RequestMatcher requestMatcher = mock(RequestMatcher.class);
this.filter.setRegisterCredentialMatcher(requestMatcher);
FilterChain mock = mock(FilterChain.class);
this.filter.doFilter(request, response, mock);
this.filter.doFilter(this.request, this.response, mock);
verify(requestMatcher).matches(any());
}

Expand All @@ -125,7 +125,7 @@ public void doFilterWhenCustomRequestRemoveCredentialMatcherThenUses() throws Ex
RequestMatcher requestMatcher = mock(RequestMatcher.class);
this.filter.setRemoveCredentialMatcher(requestMatcher);
FilterChain mock = mock(FilterChain.class);
this.filter.doFilter(request, response, mock);
this.filter.doFilter(this.request, this.response, mock);
verify(requestMatcher).matches(any());
}

Expand Down

0 comments on commit f4fa2ff

Please sign in to comment.