Spring Boot Multiple security configurations needed?

Hi Guys, Just want to quickly check if anyone of you can help me understand why multiple Security Configurations are needed in this https://github.com/flowable/flowable-engine/blob/17af19649d9c8d09aa3289c8bda6358ecdab8d2f/modules/flowable-spring-boot/flowable-spring-boot-samples/flowable-spring-boot-sample-rest-api-security/src/main/java/flowable/Application.java

Thanks for your time!

One is for the REST API that the UI uses (uses cookie authentication) and the other one is for the ‘regular’ REST API (uses basic auth).

I see. Thanks for the clarification @joram