Comments (7)
From what I see, you'd add the choice in DBUserStorageProviderFactory.java (search for "bcrypt", add yours at the end of this list.)
Then in UserRepository.java -> validateCredentials, you'd see what you have to do to validate the credentials using that algorithm.
To get the jar file, the build step is here (mvn is maven, a build tool for Java).
from singular-keycloak-database-federation.
@dla-c-box Thanks a lot for the explanation. Actually when I am running mvn clean package in the root of my springboot project, it says "Error - --classpath needs to be specified". I am trying to find resources online to read about maven. If you could provide with some context about the same, that would be great. Thanks
from singular-keycloak-database-federation.
Do you already have a jdk? Otherwise, on Linux, the initial setup could look like this:
sudo apt-get update
sudo apt-get install openjdk-11-jdk
sudo apt install maven
If you are using the VScode editor, the Java extension pack is here.
from singular-keycloak-database-federation.
Hi @dla-c-box . I was able to successfully build and integrate the provider after changing some code. I only had to put target/ folder in the JAR file and it worked. Thanks for your help
from singular-keycloak-database-federation.
Hi @dla-c-box . I found a workaround for my problem. instead of implementing hashing mechanism in JAVA, I am calling an API now and sending username and password over it to validate it from my backend. Eventually I will send the password as an encrypted string.
I wrote the code in UserRepository class, in validateCredentials method and I manually put the jar files of relevant dependencies in the providers/ directory. But still I am seeing this java.lang.NoClassDefFoundError: org/springframework/util/MultiValueMap
error.
Could you please help with this?
from singular-keycloak-database-federation.
Did you add a reference to MultiValueMap in your source code? If so, remove it and, if it was used, replace it with native Java classes instead.
from singular-keycloak-database-federation.
Hi @dla-c-box. Yes I have added the reference to that. But I also need WebClient from spring-starter-webflux package. Can I not use the springframework package?
I copied the jar for spring-starter-webflux package in the providers/ folder and then ran kc.sh start-dev
command. Is there any way of using this package along with keycloak
Edit: I ran the mvn clean package
command and it generated some more JAR files in the dist/ directory. I used that and it worked
from singular-keycloak-database-federation.
Related Issues (20)
- provider not working with keycloak 19.0.3 HOT 3
- Issue when saving user federation info HOT 2
- Using singular-keycloak-database-federation with external saml IdP
- Firstname, lastname and created date is not shown HOT 6
- Is federation via IBM DB2 possible? HOT 2
- Error saving federation in keycloak dockerized HOT 1
- Keycloak 20 compatibility HOT 6
- Throwing interface method not implemented exception when searching for users in Keycloak 20 HOT 1
- SQL Server 2012+ requirement HOT 1
- singular-keycloak-database-federation and db stored client roles
- Issue with pulling multiple value field into keycloak user storage. HOT 1
- Synchronization ignored as it's already in progress HOT 2
- Required user actions
- how to define the query for findBySearchTerm? HOT 1
- when I creating federation in keycloak 19.0.3, some error message showed HOT 1
- "Too many open files" when building Keycloak 19.0.1 image with singular-keycloak-database-federation provider HOT 3
- Facing error with KC 22 HOT 1
- User Fetching Error on Keycloak Latest Version HOT 4
- Keycloack User Federation Existing DB With PBKDF2-SHA256
- Copy JAR files and run start-dev but fails - Keycloak Latest HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from singular-keycloak-database-federation.