Repository navigation
Keycloak extension dev: how to enable support for @Valid annotation? #22687
Replies: 4 comments 8 replies
|
Dear team, we have exactly same problem while handling jakarta validation results. |
|
I have solved this issue on my end by calling validate on the Hibernate Validator manually instead of using the |
|
For keycloak 24+ I believe you need quarkus-hibernate-validator and the missing transitive dependencies, for KC 24 the provider directory needs: io.quarkus:quarkus-hibernate-validator:3.8.5 |
|
This still seems to be broken, are there any updates regarding @Valid annotations no longer working in latest Keycloak builds or is the manual validation the only way from now on? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
What is the intended way to validate the request body of a
RealmResourceProviderresource?Keycloak validation API is on the classpath through
keycloak-model-jpa, but it appears like there's no implementation configured (like hibernate validation).I've then tried to add hibernate validation API to my classpath but it seems like it's not being used in the JAX-RS context.
Any pointers are welcome.
All reactions