I am using a custom AuthenticationProvider within a BasicProcessingFilter to implement basic HTTP auth.
However, in case of failure I would like it to return a 403 (forbidden) instead of a 401 (i.e. I don't want the browser dialog to pop up).
Where can I configure the HTTP error code to be returned?
Code:<bean id="vasmAuthenticationProvider" class="com.rp.security.VasmAuthenticationProvider"> <security:custom-authentication-provider /> </bean> <bean id="basicProcessingFilter" class="org.springframework.security.ui.basicauth.BasicProcessingFilter"> <property name="authenticationManager"> <ref bean="_authenticationManager" /> </property> <property name="authenticationEntryPoint"> <ref bean="authenticationEntryPoint" /> </property> <security:custom-filter position="PRE_AUTH_FILTER" /> </bean> <bean id="authenticationEntryPoint" class="org.springframework.security.ui.basicauth.BasicProcessingFilterEntryPoint"> <property name="realmName" value="RP" /> </bean> <!-- The authentication Manager that forwards the handling to the provider manager --> <bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager"> <property name="providers"> <list> <ref bean="vasmAuthenticationProvider" /> </list> </property> </bean>


. But you are correct.
