how to work with spring security
554943871 opened this issue · comments
554943871 commented
I found that charon-proxy ignore the spring security filter , charon has higher priority than spring security filter, I need to protect the url which will be proxied with spring security.
Mariusz Kopylec commented
The order of the Charon’s filter is configurable
Mariusz Kopylec commented
Do you still have a problem with that?
Torsten Liermann commented
I have a problem with this, because I use a jsr196 approach. How can I configure the order of the Charon's filters?
Thanks
Mariusz Kopylec commented
@Configuration
class CharonConfiguration {
@Bean
CharonConfigurer charonConfigurer() {
return charonConfiguration().filterOrder(<int>);
}
}
By default it's set to Ordered.HIGHEST_PRECEDENCE
.
554943871 commented
Thank you very much!
Mariusz Kopylec commented
No problem.
PS: Maybe you don't need Spring Security in your app. Charon supports basic and bearer HTTP authentication schemes. See here.