I have to use a JAR which configures a SecurityFilterChain.
How can I add the VaadinSecurityConfigurer to the chain?
I don’t know if I understood correctly your question, but this is how you use the Vaadin configurer
HttpSecurity.with(VaadinSecurityConfigurer.vaadin(), v ->…)
Edit: HttpSecurity in the above example is the instance you use to build the chain
OK, let’s elaborate a bit.
Authentication is (per company policy) done with a JWT sent in a special header. Validation of the JWT etc. happens in a library which my app has to use. In this library there is SecurityFilterChain configured, doing its internal magic.
I can’t create another SecurityFilterChain because the other one already handles all requests, so I need to add the VaadinSecurityConfigurer to the existing chain. Question is how to do that?
Honestly , if you have no access to the security chain builder and you cannot add a new chain with a dedicated security matcher, I do not know how you can push additional rules
Seems that after all I actually don’t need the VaadinSecurityConfigurer. Weird, I don’t fully understand this.