ClassCastException with custom Keycloak Authentication Filter #21
Labels
invalid
This doesn't seem right
kind/question
Further information is requested
wontfix
This will not be worked on
Hello,
I already asked this question in this post of the Camunda Forum but received no answer.
I am writing my own Container Based Authentication Filter. I wrote the following java class
KeycloakSSOAuthenticationProvider
that implementsAuthenticationProvider
and looks something like this:Here ist the filter description from my
web.xml
file:There is an error at runtime when the filter tries to cast
KeycloakSSOAuthenticationProvider
toAuthenticationProvider
. I would suppose that this casting should not be a problem since the first one implements the second one.However it appears that
KeycloakSSOAuthenticationProvider
is loaded byURLClassLoader
, whileAuthenticationProvider
is loaded byParallelWebappClassLoader
and this is creating the error. Here the error log I get when running camunda:How should I approach this issue?
The text was updated successfully, but these errors were encountered: