very informative video. I am trying to use a database which is not officially supported by Keycloak. Using Custom UserStorageProvider will it be possible to do so?
Hi, I tried using the provided method and using the same code. However, I'm encountering the following error in the logs: 2024-12-04 12:24:47,880 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (executor-thread-1) Uncaught server error: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.boot.archive.scan.spi.ClassFileArchiveEntryHandler Has anyone faced this issue? How can I resolve it?"
Well, adding users can be done multiple ways. For example, using keycloak admin clients, we can add users or use some external microservices. we can add users to the database
Could you please also create one backend application where we have our own user and role entity and then we are securing using keycloak i.e custome user and role entity that will be great help.
@@kstechnoworld means we are not creating user and role in keycloak instead we will use user and role in our database and then authenticate them with keycloak
very informative video. I am trying to use a database which is not officially supported by Keycloak. Using Custom UserStorageProvider will it be possible to do so?
We are using keycloak-model-jpa library for connection. You can try to configure and test it, I feel it will work, but honestly, I have not tried.
@@kstechnoworld please attach dockerfile as would be very helpful
Hi, I tried using the provided method and using the same code. However, I'm encountering the following error in the logs:
2024-12-04 12:24:47,880 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (executor-thread-1) Uncaught server error: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.boot.archive.scan.spi.ClassFileArchiveEntryHandler
Has anyone faced this issue? How can I resolve it?"
Can do Add user part ?
Well, adding users can be done multiple ways. For example, using keycloak admin clients, we can add users or use some external microservices. we can add users to the database
Have you ever implementing the UserBulkUpdateProvider, ImportedUserValidation and ImportSynchronization?
No, I have not tried these, but surely I may come up with one session
@@kstechnoworld It would be nice 🙂Thank you in advance :-)
@kstechnoworld Do you have any video regarding a custom provider connecting to jdbc?
Could you please also create one backend application where we have our own user and role entity and then we are securing using keycloak i.e custome user and role entity that will be great help.
I am sorry but not sure I understand this fully, can you explain this in detail, then might be I can help.
@@kstechnoworld means we are not creating user and role in keycloak instead we will use user and role in our database and then authenticate them with keycloak
Hello, you can do this with Customer Storage SPI