mkopylec / charon-spring-boot-starter

Reverse proxy implementation in form of a Spring Boot starter.
Apache License 2.0
240 stars 54 forks source link

how to work with spring security #93

Closed 554943871 closed 4 years ago

554943871 commented 5 years ago

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.

mkopylec commented 5 years ago

The order of the Charon’s filter is configurable

mkopylec commented 5 years ago

Do you still have a problem with that?

torsten-liermann commented 4 years ago

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

Thanks

mkopylec commented 4 years ago
@Configuration
class CharonConfiguration {

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

By default it's set to Ordered.HIGHEST_PRECEDENCE.

554943871 commented 4 years ago

Thank you very much!

mkopylec commented 4 years ago

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