mkopylec / charon-spring-boot-starter

Reverse proxy implementation in form of a Spring Boot starter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to work with spring security

554943871 opened this issue · comments

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.

The order of the Charon’s filter is configurable

Do you still have a problem with that?

I have a problem with this, because I use a jsr196 approach. How can I configure the order of the Charon's filters?

Thanks

@Configuration
class CharonConfiguration {

    @Bean
    CharonConfigurer charonConfigurer() {
        return charonConfiguration().filterOrder(<int>);
    }
}

By default it's set to Ordered.HIGHEST_PRECEDENCE.

Thank you very much!

No problem.
PS: Maybe you don't need Spring Security in your app. Charon supports basic and bearer HTTP authentication schemes. See here.