@ -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.ui.DefaultResourcesFilter ;
import org.springframework.security.web.authentication.www.BasicAuthenticationFilter ;
import org.springframework.security.web.authentication.www.BasicAuthenticationFilter ;
import org.springframework.security.web.csrf.CsrfToken ;
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.api.PublicKeyCredentialRpEntity ;
import org.springframework.security.web.webauthn.authentication.PublicKeyCredentialRequestOptionsFilter ;
import org.springframework.security.web.webauthn.authentication.PublicKeyCredentialRequestOptionsFilter ;
import org.springframework.security.web.webauthn.authentication.WebAuthnAuthenticationFilter ;
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 ) ;
ExceptionHandlingConfigurer < H > exceptions = http . getConfigurer ( ExceptionHandlingConfigurer . class ) ;
if ( exceptions ! = null ) {
if ( exceptions ! = null ) {
AuthenticationEntryPoint entryPoint = new LoginUrlAuthenticationEntryPoint ( "/login" ) ;
AuthenticationEntryPoint entryPoint = new LoginUrlAuthenticationEntryPoint ( "/login" ) ;
exceptions . defaultDeniedHandlerForMissingAuthority (
exceptions . defaultDeniedHandlerForMissingAuthority ( ( ep ) - > ep . defaultEntryPoint ( entryPoint ) ,
( ep ) - > ep . addEntryPointFor ( entryPoint , AnyRequestMatcher . INSTANCE ) ,
GrantedAuthorities . FACTOR_WEBAUTHN_AUTHORITY ) ;
GrantedAuthorities . FACTOR_WEBAUTHN_AUTHORITY ) ;
}
}
}
}