mahesh1996 / spring-security-rest

Library to secure your rest apis in just a second.
Apache License 2.0
1 stars 0 forks source link

Wire core beans statically using XML. #1

Open farkaskid opened 6 years ago

farkaskid commented 6 years ago

The core low-level beans can be statically wired using the XML configuration.

kshitij1708 commented 6 years ago

@farkaskid Why it is required?

farkaskid commented 6 years ago

Its not necessary but more of a suggestion. Take a look at this https://github.com/mahesh1996/spring-security-rest/blob/0.0.1-SNAPSHOT/src/main/java/com/mbz/springsecurity/rest/RestAuthenticationFilter.java#L48

He had to inject the context there because autowiring is not performed in filters as pointed out by @mahesh1996 but we should be able to manually wire them.

This can/should be delayed until we have something stable/fixed.