|
@@ -35,7 +35,6 @@ import org.springframework.security.web.authentication.ui.DefaultLoginPageGenera
|
|
|
import org.springframework.security.web.authentication.ui.DefaultResourcesFilter;
|
|
|
import org.springframework.security.web.authentication.www.BasicAuthenticationFilter;
|
|
|
import org.springframework.security.web.csrf.CsrfToken;
|
|
|
-import org.springframework.security.web.util.matcher.AnyRequestMatcher;
|
|
|
import org.springframework.security.web.webauthn.api.PublicKeyCredentialRpEntity;
|
|
|
import org.springframework.security.web.webauthn.authentication.PublicKeyCredentialRequestOptionsFilter;
|
|
|
import org.springframework.security.web.webauthn.authentication.WebAuthnAuthenticationFilter;
|
|
@@ -159,8 +158,7 @@ public class WebAuthnConfigurer<H extends HttpSecurityBuilder<H>>
|
|
|
ExceptionHandlingConfigurer<H> exceptions = http.getConfigurer(ExceptionHandlingConfigurer.class);
|
|
|
if (exceptions != null) {
|
|
|
AuthenticationEntryPoint entryPoint = new LoginUrlAuthenticationEntryPoint("/login");
|
|
|
- exceptions.defaultDeniedHandlerForMissingAuthority(
|
|
|
- (ep) -> ep.addEntryPointFor(entryPoint, AnyRequestMatcher.INSTANCE),
|
|
|
+ exceptions.defaultDeniedHandlerForMissingAuthority((ep) -> ep.defaultEntryPoint(entryPoint),
|
|
|
GrantedAuthorities.FACTOR_WEBAUTHN_AUTHORITY);
|
|
|
}
|
|
|
}
|