Move cuba-idp to separate application component #411

This commit is contained in:
Daniil Tsarev 2018-09-13 13:01:24 +04:00
parent 98823c4f69
commit f8027115c2
2 changed files with 12 additions and 0 deletions

View File

@ -82,6 +82,17 @@ public interface WebConfig extends Config {
@Default("/ws/,/dispatch/,/rest/,/front/")
List<String> getCubaHttpFilterBypassUrls();
/**
* Enables to pass additional Cuba HTTP Filter bypass URLs from application components.
* <p>
* Related to {@link WebConfig#getCubaHttpFilterBypassUrls()}.
*
* @return Comma-separated list of URLs for CubaHttpFilter to bypass.
*/
@Property("cuba.web.externalHttpFilterByPassUrls")
@Factory(factory = CommaSeparatedStringListTypeFactory.class)
List<String> getExternalHttpFilterBypassUrls();
/**
* @return Default main window mode.
* Takes place until the user did not change its own preference through user settings.

View File

@ -48,6 +48,7 @@ public class CubaHttpFilter extends CompositeFilter implements Filter {
// Fill bypassUrls
WebConfig webConfig = configuration.getConfig(WebConfig.class);
bypassUrls.addAll(webConfig.getCubaHttpFilterBypassUrls());
bypassUrls.addAll(webConfig.getExternalHttpFilterBypassUrls());
List<Filter> filters = new ArrayList<>();