I have implemented a really simple keycloak integration on my maven java web app. Assuming I am calling a url directly for the keycloak log in page . After entering my username & password on success i am being redirected on mypage.html , the url is like this If I break this down its What would be the simplest –
Tag: keycloak
Keycloak custom PasswordHashProvider, salt change on each connection
I am trying to create a custom PasswordHashProvider. I succeeded in creating the component, the algorithm is working, the password saved in the database is correct. A Salt is stored in a database, but I don’t understand how. I thought it was the base 64 salt, but it doesn’t match. I add logs in the console when creating a password
Protect individual resources from Spring Boot via Keycloak
I’ve got a very simple Spring Boot application with resources at /repositories and /persons. Here is my build.gradle file. Here is my SecurityConfig.java file. Here is my application.yaml file. It’s all on my local machine and Keycloak and Postgres are started via docker compose. I’ve got the users zemirco and one in Keycloak and they both have the user role.
Include third party library in wildfly jar (keycloak SPI)
I am creating plugins (providers) for keycloak using the Service Provider Interface. I have been able to build a couple. Now I need to add the smallrye-graphql-client library to query a graphql server. However, the library is not found in the classpath when I deploy the pluging. Questions Is it possible to still create a jar which includes the dependency
Keycloak: Can not read users realm roles as admin cli when calling the admin rest api
I use keycloak 11 as openid connect provider for my spring boot services. Everything works fine so far. Problem: I have a service that uses a webclient. It is nested in my service and uses client auth with the admin-cli client. That works. When I do a get on /users/userId, I get the user representation. The problem I have now
How can I make my spring boot application to log in to keycloak with given username and password?
I have a spring-boot application and I am using keycloak to authenticate users. I am planning to make an endpoint in my application that waits a username and a password, it logs-in to keycloak and if the username/password is valid ask for an access token and give it back to the user. How can I make this log-in to keycloak?
Access user info from SecurityIdentity using quarkus-oidc
I am using quarkus-oidc with keycloak and I have the following resource My quarkus configurations is the following I am calling the query as follow The content of the jwt is How can I access the user info stored in the token using quarkus oidc? I’ have seen that there is an option quarkus.oidc.authentication.user-info-required=true which will be calling the keycloak
Unable to authenticate the login of application user using Keycloak
I am working over integration of React application with Keycloak. I have installed the Keycloak server version 11.0.2 over my local machine. I am able to access the administrative login and create the admin user. I have also created a custom client and user with credentials using the Keycloak. My react application is hosted over port 9000 of my machine
Keycloak java.lang.NoClassDefFoundError: java/security/acl/Group using Springboot
So we are building a Springboot back-end with Keycloak integration. But we get the following error when running the back-end on a docker swarm service: I tried it with JDK 8 and JDK 11 since the following post implies that the wrong JDK can cause a problem: Stackoverflow post. It still gives this error. The following is our build.gradle setup:
How to get user details from keycloak (not logged in user but any user by his id)
In my Java web application with Spring Boot I have Keycloak authentication done but now I need to get user details of some user by id (not user that is logged in). Is it possible ? I want to get his roles, groups and data from Java code. Answer You can use the REST API by getting an access token