Hi, I am new to spring and spring security,
I have understood how beans are created and referenced in the xml files, I need to provide security using spring into my application.
I included a custom applicationContext-security.xml file in my web.xml : contextConfigLocation
in this file, I have intercepted url patterns using
<intercept-url pattern='/**.something' access="IS_AUTHENTICATED_FULLY"/>
inside element.
I have set the form for login as now, if a page is not authorised it shows me my custom Login.html page.
Now for the issues I am facing:
- How do I specify my login form to pass its value to spring ?
- How do I use my own authentication-provider ?
I tried this:
<authentication-provider user-service-ref="userDetailsService"/>
<beans:bean id = "userDetailsService" class ="com.somepath.CustomAuthenticationProvider">
<custom-authentication-provider/>
</beans:bean>
where CustomAuthenticationProvider implements AuthenticationProvider
but the code throws an error: Error creating bean with name '_filterChainProxy' .... No UserDetailsService registered
Please help