Closed g7fernandes closed 2 years ago
Which version of Testcontainers-Keycloak do you use? Just the mentioned 1.10 and 2.0? Generally you shouldn't use the 2.x version if you are still on a Wildfly based Keycloak version (see readme).
Is there any Keycloak log output? You only posted the Testcontainers exception, that the container couln't be started, but is there any log output from the Keycloak container itself? Without that, it's hard to guess, because there's nothing Keycloak-related in your description and I can't tell you anything, what's going wrong without knowing what you are doing. Perhaps you can provide a minimum working example with which one can reproduce the error?
Hi @g7fernandes
This problem happen with me when the imported realm don't find the custom provider. Try to see the log of the container, the problem probably is there.
As there is no more action nor response from the OP, I'll assume that this is obsolete. If there's is no further response, I'm going to close this issue in the next few days.
Hi!
I'm trying to write some tests for a code similar to your keycloak-2fa-sms-authenticator.
I'm trying to start the container with
where
"target/classes"
contains the classes that implementAuthenticatorFactory
andAuthenticator
classes.What I get is an error saying that the container could not start. If I remove
.withProviderClassesFrom("target/classes")
, it starts with no problem.My dependencies:
The same error occurs with the version 1.10.0 and 2.0.0. My authenticator works correctly when deploying to a Keycloak docker.