Skip to content

Commit d7fbb05

Browse files
author
topiam
committed
Support Custom RequestMatchers for WebAuthn
Signed-off-by: topiam <[email protected]>
1 parent c7a2278 commit d7fbb05

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
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
@@ -101,7 +101,7 @@ void cleanup() {
101101
}
102102

103103
@Test
104-
public void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
104+
void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
105105
RequestMatcher requestMatcher = mock(RequestMatcher.class);
106106
this.filter.setRequestMatcher(requestMatcher);
107107
FilterChain mock = mock(FilterChain.class);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void clear() {
9191
}
9292

9393
@Test
94-
public void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
94+
void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
9595
RequestMatcher requestMatcher = mock(RequestMatcher.class);
9696
this.filter.setRequestMatcher(requestMatcher);
9797
FilterChain mock = mock(FilterChain.class);
@@ -100,7 +100,7 @@ public void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
100100
}
101101

102102
@Test
103-
public void setRequestMatcherWhenNullThenIllegalArgument() {
103+
void setRequestMatcherWhenNullThenIllegalArgument() {
104104
assertThatIllegalArgumentException().isThrownBy(() -> this.filter.setRequestMatcher(null));
105105
}
106106

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void setup() {
112112
}
113113

114114
@Test
115-
public void doFilterWhenCustomRequestRegisterCredentialMatcherThenUses() throws Exception {
115+
void doFilterWhenCustomRequestRegisterCredentialMatcherThenUses() throws Exception {
116116
RequestMatcher requestMatcher = mock(RequestMatcher.class);
117117
this.filter.setRegisterCredentialMatcher(requestMatcher);
118118
FilterChain mock = mock(FilterChain.class);
@@ -121,7 +121,7 @@ public void doFilterWhenCustomRequestRegisterCredentialMatcherThenUses() throws
121121
}
122122

123123
@Test
124-
public void doFilterWhenCustomRequestRemoveCredentialMatcherThenUses() throws Exception {
124+
void doFilterWhenCustomRequestRemoveCredentialMatcherThenUses() throws Exception {
125125
RequestMatcher requestMatcher = mock(RequestMatcher.class);
126126
this.filter.setRemoveCredentialMatcher(requestMatcher);
127127
FilterChain mock = mock(FilterChain.class);
@@ -130,12 +130,12 @@ public void doFilterWhenCustomRequestRemoveCredentialMatcherThenUses() throws Ex
130130
}
131131

132132
@Test
133-
public void setRequestRegisterCredentialWhenNullThenIllegalArgument() {
133+
void setRequestRegisterCredentialWhenNullThenIllegalArgument() {
134134
assertThatIllegalArgumentException().isThrownBy(() -> this.filter.setRegisterCredentialMatcher(null));
135135
}
136136

137137
@Test
138-
public void setRequestRemoveCredentialWhenNullThenIllegalArgument() {
138+
void setRequestRemoveCredentialWhenNullThenIllegalArgument() {
139139
assertThatIllegalArgumentException().isThrownBy(() -> this.filter.setRemoveCredentialMatcher(null));
140140
}
141141

0 commit comments

Comments
 (0)