Rahul Pandit.
Published in : 2022-03-05

Keycloak db query in source codes [closed]


I want to make some changes in the ValidateUsername and AbstractUsernameFormAuthenticator java classes of Keycloak source codes and access the tables of the H2 database of Keycloak.

Suppose I have created a new table in H2 Keycloak's DB (called MyTable) and it consists of 2 column (Username and specific attribute). Now I want to access MyTable in those classes mentioned.

Note 1: I don't want to develop a new SPI to be used instead of these 2 providers. I just want to make some changes on them.

Note 2: I can also use DriverManager.getConnection() and execute my commands using executeQuery but I am searching for a better performance way to access the table. (Since Keycloak is connected to the DB already to perform some functions like user.getId ...)


There is no comments yet

Leave a comment

Join us

Join our community and get the chance to solve your code issues & share your opinion with us

Sign up Now

Related posts

Is there any port I need to allow in google VM instances to allow SMTP?
Publish date: 2022-02-14 | Comments: 1

Tag: General

Where can I find cheap Java and Mysql hosting server?
Publish date: 2022-05-03 | Comments: 3

Tag: General

Choose default editor from filezilla on Ubuntu
Publish date: 2022-02-28 | Comments: 4

Tag: General

Is it possible to git commit files without adding a message or comments?
Publish date: 2022-03-02 | Comments: 2

Tag: General

git issue, fatal error: your current branch appears to be broken
Publish date: 2022-03-01 | Comments: 2

Tag: General

what is alternative for sending mail through Gmail SMTP?
Publish date: 2022-06-08 | Comments: 3

Tag: General

Convert Stored Procedure of Oracle to SQL Server
Publish date: 2022-03-02 | Comments: 1

Tag: General