12. Keycloak Admin Client Spring Boot Integration: Creating New Users Tutorial

  Рет қаралды 11,429

Code With Bisky

Code With Bisky

Күн бұрын

Пікірлер: 69
@giuseppezappia9630
@giuseppezappia9630 3 ай бұрын
Man, you're a life saver. Big Up.
@CodeWithBisky
@CodeWithBisky 3 ай бұрын
Thank you very much
@vikas4247
@vikas4247 3 ай бұрын
This video is suggested by Bing AI when I was asking for specific query and it really helps,
@CodeWithBisky
@CodeWithBisky 3 ай бұрын
Thank you very much
@christelledutoit
@christelledutoit 8 ай бұрын
This video was very helpful, thanks!
@CodeWithBisky
@CodeWithBisky 8 ай бұрын
Glad to hear it!
@bmukorera
@bmukorera 6 ай бұрын
great tutorial, simple and easy to follow
@CodeWithBisky
@CodeWithBisky 6 ай бұрын
Thank you bro
@Ghrab1
@Ghrab1 10 ай бұрын
thank you bro , working fine
@CodeWithBisky
@CodeWithBisky 10 ай бұрын
Most welcome
@khalilhermassi1439
@khalilhermassi1439 10 ай бұрын
Unbelievable Work ! Love from Tunisia !
@CodeWithBisky
@CodeWithBisky 10 ай бұрын
Thank you very much 😊
@MohamedAmineREGAIA
@MohamedAmineREGAIA 8 ай бұрын
Excellent Work ! Love from Tunisia
@ngbean4371
@ngbean4371 2 ай бұрын
Hi Thanks a lot Bisky for this incredible tutorials I have one question why we need to create our custom APIs for keycloak crud operations while we have keycloak login and register page
@CodeWithBisky
@CodeWithBisky 2 ай бұрын
We a need a way to centralize the registration without exposing credentials to the client. Think of iOS app, Android, web and having the credentials in every app. For security reasons we don’t have to do that in our client app. Server side is very secure.
@CodeWithBisky
@CodeWithBisky 2 ай бұрын
The API’s are called by all clients and we have a uniform registration across all apps
@nadetdevfullstack7041
@nadetdevfullstack7041 9 ай бұрын
Excellent
8 ай бұрын
Excellent!!!!!!
@Kimsunfang
@Kimsunfang 6 ай бұрын
Your video has been a great help. I have a question about the Capability Config settings that start at 7:20 in your video. I'd like to programmatically enable "Client authentication," "Direct access grants," and "Service accounts roles" using keycloak-admin-client. For example, when a Spring Boot application runs, I want it to automatically create a realm in Keycloak and activate the "Client authentication," "Direct access grants," and "Service accounts roles" options for that realm's admin-cli. Could you provide any references or assistance on this matter? I'm using both Keycloak and keycloak-admin-client version 24.0.2.
@CodeWithBisky
@CodeWithBisky 6 ай бұрын
I don't have a tutorial for this functionality.
@chitranshsaxena6221
@chitranshsaxena6221 8 ай бұрын
Hey! Great video. Helped me a lot. Just wanna ask can we create Realms as well? If yes can we create Realms with the help of keycloak-realm.json(Realm Configuration) by sending it through api as a payload?
@CodeWithBisky
@CodeWithBisky 8 ай бұрын
You can create a realm using admin portal. Thank you very much. More tutorials are on the way
@chitranshsaxena6221
@chitranshsaxena6221 8 ай бұрын
what if I don't want to go to the admin portal/console? can we achieve this functionality from keycloak instance builder like you have used it for creating users? @@CodeWithBisky
@evgeniybudaev1690
@evgeniybudaev1690 2 ай бұрын
Thank you very much. How update user?
@CodeWithBisky
@CodeWithBisky 2 ай бұрын
You can call a method to update a user with the userId
@kbpmowrya
@kbpmowrya 2 ай бұрын
Out of 10 times, 6 times it is showing error "HTTP 500 Internal Server Error" when you create users and other api's are not working.
@CodeWithBisky
@CodeWithBisky 2 ай бұрын
May you please watch the latest complete video of Mastering Keycloak. All the issues were resolved well explained
@kbpmowrya
@kbpmowrya 2 ай бұрын
@@CodeWithBisky thanks I will do
@HenazeriBoutique
@HenazeriBoutique 10 ай бұрын
how we can run docker compose in different environment? for example: you have mysql-docker-compose.yml and how we will run in the command line? cause docker-compose up getting the error
@CodeWithBisky
@CodeWithBisky 10 ай бұрын
Rename the file name to docker-compose.yml remove the mysq- prefix
@PAUL1430
@PAUL1430 5 ай бұрын
I just downloaded ur repository and controller send-verify-email isn't working. update password too
@CodeWithBisky
@CodeWithBisky 5 ай бұрын
Follow tutorials for those features
@ones2dev196
@ones2dev196 6 ай бұрын
tutorial is really great, but when testing create user endpoint i always have 200 code and user is not creating, can anybody help me tp deal with it?
@CodeWithBisky
@CodeWithBisky 6 ай бұрын
Did you manage to resolve this?
@gandawaab75
@gandawaab75 5 ай бұрын
Thank you bro
@CodeWithBisky
@CodeWithBisky 5 ай бұрын
You are welcome
@bohdanphoenix
@bohdanphoenix 6 ай бұрын
Hi. 47:44 - How can I implement the above query in Postman using the RestController?
@PriyanshuThakur-k3h
@PriyanshuThakur-k3h 6 ай бұрын
same qus
@CodeWithBisky
@CodeWithBisky 5 ай бұрын
You can copy the json from swagger and paste it on postman
@MohamedAmineREGAIA
@MohamedAmineREGAIA 7 ай бұрын
Hi bisky! im always get reponse 401 - unauthorized with postman
@CodeWithBisky
@CodeWithBisky 7 ай бұрын
Hi, make sure you are sending the correct client details you created. Take a look at the realm and clientId you are using.
@hocampro6176
@hocampro6176 6 ай бұрын
@@CodeWithBisky jakarta.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized I take this error and my infos are true, how can I resolve this please help me ?
@bitroxtn7385
@bitroxtn7385 10 ай бұрын
hey Bisky i got this error can u help me please Cannot invoke "java.security.Principal.getName()" because "principal" is null
@CodeWithBisky
@CodeWithBisky 10 ай бұрын
Hey, are you accessing the endpoint with a valid token. You can post your issue in our discord channel
@danielezappa3050
@danielezappa3050 8 ай бұрын
Hi bisk! I followed your video to set up my spring boot application and integrating the users creation logic (I copied your Service, Config and Controller): Now I'm trying to create users calling the controller from a frontend endpoint but I receive a 400 Bad Request Http Error. Could you help me to resolve this problem?
@CodeWithBisky
@CodeWithBisky 8 ай бұрын
May you please clone the project
@danielezappa3050
@danielezappa3050 8 ай бұрын
@@CodeWithBiskyhow should I do it? You want me to put the spring boot project on my git?
@CodeWithBisky
@CodeWithBisky 8 ай бұрын
Check the gitlab repository in the channel description and compare with you changes@@danielezappa3050
@michaelajiri
@michaelajiri 11 ай бұрын
Hello Bisky, thank you so much for the tutorial. However, I am encountering an issue while deploying both the Keycloak 22.0.4 version and the latest version, 23.0.0. I utilized the Docker Compose file configuration specified in the 'spring-boot-third-application' that I cloned from GitLab. At some point, the Admin UI fails to load and continues spinning indefinitely. I have explored online solutions, but none have been successful. Could you please provide guidance on resolving this issue? Thank you.
@CodeWithBisky
@CodeWithBisky 11 ай бұрын
Most welcome. Watch this video kzbin.info/www/bejne/maq0n2mkh7B_i68
@michaelajiri
@michaelajiri 11 ай бұрын
Thank you, Bisky. I have resolved the issue. I have a follow-up question. I have three standalone Spring Boot applications. One of them handles user registration with fully implemented Keycloak functionality, while the others are for address service and e-commerce service. I've created APIs for both the address service and e-commerce service. After a user logs in via Keycloak, I want to use the token to consistently access these APIs in the address service and e-commerce apps. Could you please direct me to any documentation or tutorial that could be helpful?
@CodeWithBisky
@CodeWithBisky 11 ай бұрын
You are welcome. I shall create a tutorial for that. We are supposed to use FeignClient.
@michaelajiri
@michaelajiri 11 ай бұрын
I would like to implement an additional functionality within this specification, wherein I aim to retrieve the user ID from Keycloak. Upon a user's successful login, I intend to utilize the token to obtain the current user's ID from Keycloak. This user ID will be stored for future use, allowing me to retrieve specific values associated with that user within my code.
@michaelajiri
@michaelajiri 10 ай бұрын
Hello Bisky, I am employing Keycloak as a single sign-on solution for my various Spring Boot applications. While making inter-service API calls from each application, how can I utilize the token associated with the user's sign-in to access an API from any of the external applications. My system is not a Micro service architecture they are just standalone springboot applications
@IssamGharbi-o5y
@IssamGharbi-o5y 7 ай бұрын
Could i work with the 24.0.2 keycloack version ?
@CodeWithBisky
@CodeWithBisky 7 ай бұрын
Yes it's ok that one
@IssamGharbi-o5y
@IssamGharbi-o5y 6 ай бұрын
@@CodeWithBisky i had this error on testing the get and the delete user '' 500 Undocumented Error: response status is 500 Response body Download { "timestamp": "2024-04-01T02:12:05.196+00:00", "status": 500, "error": "Internal Server Error", "path": "/api/integration/users/userId" } "" your help please !!
@SultanAliyev-s7w
@SultanAliyev-s7w 11 ай бұрын
Hello, great content How can I add roles to user in createUser() method? P.S I tried using user.setRealmRoles(List.of(“my_role”)); But it didn’t add “my_role” role 😢
@CodeWithBisky
@CodeWithBisky 11 ай бұрын
You are welcome Check this commit of the new series gitlab.com/code-with-bisky/bisky-music/backend/auth-service/-/commit/b36310001039af40ed3ce8dc88fd6ef695afc1c6 In this class KeycloakUserServiceImpl.java
@SultanAliyev-s7w
@SultanAliyev-s7w 11 ай бұрын
@@CodeWithBisky thanks it helped :)
@CodeWithBisky
@CodeWithBisky 11 ай бұрын
You are welcome. Enjoy coding
@shubhamsoni4582
@shubhamsoni4582 11 ай бұрын
Can i create client permission and policy using spring boot?
@CodeWithBisky
@CodeWithBisky 11 ай бұрын
You can create roles and groups. I will have a tutorial for that.
@nurkandzhsupov6953
@nurkandzhsupov6953 6 ай бұрын
🤘
@CodeWithBisky
@CodeWithBisky 6 ай бұрын
Thank you
@kyoshin7135
@kyoshin7135 8 ай бұрын
im always get reponse 400 - bad request
@CodeWithBisky
@CodeWithBisky 8 ай бұрын
Share the exception in our discord channel
@ken-gg4vr
@ken-gg4vr 4 ай бұрын
keycloak send event message
Keycloak и Spring Security
37:37
Уголок сельского джависта
Рет қаралды 15 М.
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 173 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 22 МЛН
Spring boot 3 Keycloak integration for beginners | The complete Guide
1:13:31
The TRIPLE FOLDING phone has a Problem.
12:54
Mrwhosetheboss
Рет қаралды 1,7 МЛН
Keycloak Is AWESOME! Single Sign On Made Easy!
25:05
Jim's Garage
Рет қаралды 103 М.
Advanced Keycloak User Mapper Techniques (2024)
12:05
K S Techno World
Рет қаралды 2,7 М.
How to secure your Microservices with Keycloak - Thomas Darimont
53:51
Voxxed Days Luxembourg
Рет қаралды 101 М.
Should you Implement Authentication Yourself?
10:38
Ben Awad
Рет қаралды 159 М.
Keycloak Admin REST API | Create Users | Add Roles
24:01
Web Tech Stack
Рет қаралды 13 М.
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 173 МЛН