KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
H i'm using spring security for form-login i have <http auto-config="true"> <intercept-url pattern="/pages/**" access="ROLE_USER" /> <form-login authentication-success-handler-ref="authenticationSuccessHandler" login-page="/login.html" default-target-url="/pages/index.html" always-use-default-target="true" authentication-failure-url="/login.html" /> <logout logout-success-url="/login.html" invalidate-session="true" /> <anonymous enabled='false'/> </http> here i can set an authentication-success-handler-ref , how can i add one to my basic authentication: <http pattern="/REST/**" realm="REALM" entry-point-ref="authenticationEntryPoint"> <intercept-url pattern="/**" access="ROLE_USER" /> <http-basic /> <logout logout-url="/REST/logout" success-handler-ref="restLogoutSuccessHandler" /> </http> i thought abour overriding BasicAuthenticationFilter, but how can i inject my cutom class for <http-basic />
Tags (comma-separated)
Save Edits
Cancel