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

preview_player
Показать описание
Keycloak Admin Client Spring Boot Integration: Creating New Users Tutorial

Welcome to CodeWithBisky! In this tutorial, we'll guide you through the process of integrating Keycloak Admin Client with Spring Boot, allowing you to manage authentication and authorization in your Java applications effortlessly. Specifically, we'll focus on creating a new user using Keycloak Admin Client API.

What You'll Learn:

Setting up Keycloak Admin Client in Spring Boot
Creating a new user programmatically using Keycloak Admin Client API
Implementing authentication and authorization features in your Spring Boot applications
Best practices for user management and security
Prerequisites:

Basic understanding of Spring Boot and Java programming
Keycloak installed and configured on your system
IDE (Eclipse, IntelliJ, etc.) installed for Java development

Don't forget to like this video, subscribe to my channel for more exciting tutorials, and hit the notification bell to stay updated with future content. If you have any questions or need further clarification, please leave a comment below, and I'll be happy to assist you.

#Keycloak #SpringBoot #JavaProgramming #Authentication #Authorization #UserManagement #ProgrammingTutorial #DeveloperGuide #APIIntegration #JavaDevelopers #WebDevelopment #Security #CodingTips #ProgrammingTips #OpenSource #SoftwareDevelopment #TechTutorial #CodeWithMe #DeveloperCommunity #LearnToCode #JavaApps #WebSecurity #KeycloakIntegration #ProgrammingJourney #CodingEducation #DeveloperLife #TechSolutions #CodeByExample #SoftwareEngineering #JavaProjects #CodeNewbie #codewithbisky

Рекомендации по теме
Комментарии
Автор

Man, you're a life saver. Big Up.

giuseppezappia
Автор

This video is suggested by Bing AI when I was asking for specific query and it really helps,

vikas
Автор

Unbelievable Work ! Love from Tunisia !

khalilhermassi
Автор

great tutorial, simple and easy to follow

bmukorera
Автор

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

ngbean
Автор

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.

kbpmowrya
Автор

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.

Kimsunfang
Автор

I just downloaded ur repository and controller send-verify-email isn't working. update password too

PAUL
Автор

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

HenazeriBoutique
Автор

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?

onesdev
Автор

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?

chitranshsaxena
Автор

Hi.
47:44 - How can I implement the above query in Postman using the RestController?

bohdanphoenix
Автор

hey Bisky i got this error can u help me please Cannot invoke because "principal" is null

bitroxtn
Автор

Could i work with the 24.0.2 keycloack version ?

IssamGharbi-oy
Автор

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 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.

michaelajiri
Автор

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?

danielezappa
Автор

Hello, great content
How can I add roles to user in createUser() method?
P.S I tried using
But it didn’t add “my_role” role 😢

SultanAliyev-sw
Автор

Can i create client permission and policy using spring boot?

shubhamsoni
Автор

im always get reponse 400 - bad request

kyoshin
Автор

Hi bisky! im always get reponse 401 - unauthorized with postman

MohamedAmineREGAIA