- 41
- 128 078
code215
United States
Приєднався 2 гру 2019
My goal is to share knowledge in various technologies such as Spring Boot, Keycloak, Docker, AWS, Elasticsearch and many more!
Essential Tip For Google Maps API
If you are working with the Google Maps Places API, you must specify which fields you want to be returned in the response. This video specifies how to do this correctly using the X-Goog-FieldMask HTTP Header.
#googlemaps #googlemapstutorial #python #pythonprogramming #pythontutorial #awslambda
#googlemaps #googlemapstutorial #python #pythonprogramming #pythontutorial #awslambda
Переглядів: 18
Відео
How To Deploy A Secure Containerized Load-Balanced Web Application To AWS Cloud From Scratch!
Переглядів 1473 місяці тому
This video describes how to deploy a Dockerized web application to the AWS Cloud. Services used here include Route53, AWS Certificate Manager, Elastic Container Registry, Application Load Balancer, Private and Public Subnets, AWS Fargate and Postgres in AWS RDS. #aws #springboot #postgres #docker #cloudwatch #route53 #loadbalancer 0:00 Intro to Architecture 1:36 Obtain Domain From Route53 2:07 ...
Using Amazon Bedrock and Amazon Kendra To Enhance Generative AI #ai #largelanguagemodels
Переглядів 2,1 тис.5 місяців тому
Adding context can make Large Language Models (LLMs) much smarter at a fraction of the cost of fine-tuning them. In this video, I will demonstrate how to use Retrieval-Augmented Generation (RAG) to optimize the output of LLMs. You'll see a simple example using AWS Kendra and AWS Bedrock to enhance LLM performance. #programming #ai #artificialintelligence #aws #machinelearning #largelanguagemode...
Spring Boot: Every Developer MUST Be Familiar With This Concept!
Переглядів 407 місяців тому
Spring Boot abstracts away a lot of its functionality and things "just work" out-of-the-box. Why is that? This video explains this key Spring Boot feature. #springboot #springboottutorial #coding #java #kotlin #webdevelopment
Best Practices For Structuring Your Spring Boot Code
Переглядів 407 місяців тому
Tips on how to structure your Spring Boot project #springboot #springboottutorial #java #kotlin
Spring Boot Testing part 5: Spying Spring Beans [Mockito]
Переглядів 369 місяців тому
Spring Boot Integration Test that uses Mockito's Spy feature to spy on Spring Beans. #docker #integrationtesting #springboot #springboottutorial #springboot #junit
Spring Boot Testing part 4: Mock JUnit Test
Переглядів 189 місяців тому
Spring Boot JUnit test that uses Mockito's Mock annotation. This is a continuation of ua-cam.com/video/hFXcIAqGm8I/v-deo.html #docker #integrationtesting #springboot #springboottutorial #springboot #junit Timestamps: 0:00 - Setup the class to mock 1:40 - MockitoExtension class notation 3:15 - Run the test
Spring Boot Testing part 3: MockBean
Переглядів 6810 місяців тому
Spring Boot integration test that uses Mockito's MockBean annotation. This is a continuation of ua-cam.com/video/3aQLFrJHXgU/v-deo.html #docker #integrationtesting #springboot #springboottutorial #spring Timestamps: 0:00 - MockBean intro 1:36 - Add MockBean annotation to test 2:41 - Run test 4:07 - When to use MockBean
Spring Boot Testing part 2: Integration Testing with Testcontainers
Переглядів 20910 місяців тому
In this video I demonstrate how to use the Spring application context together with a Postgres Testcontainer in Spring Boot integration tests. The Spring Boot application context is created using the SpringBootBest annotation which allows us to autowire beans in the test. TestContainers make it possible to use Docker containers in integration testing which is extremely beneficial because it all...
Spring Boot Testing part 1: Unit Test @SpringSourceDev
Переглядів 6810 місяців тому
How to run unit tests in your Spring Boot application using Junit. Timecodes: 0:00 - Intro 0:36 - Docker Compose and Dockerfile Walkthrough 2:21 - Create Unit Test and Run It #springboot #junit #docker #dockercompose
Deploy Keycloak to Production pt 2: Docker, NGINX, HTTPS and Infinispan Client/Server Architecture
Переглядів 3,4 тис.10 місяців тому
By default, Keycloak uses an embedded Infinispan cache. This video demonstrates how to run Keycloak with Infinispan using the client/server architecture instead. This means that we will have Infinispan servers in their own cluster in a separate JVM and Keycloak will store all the distributed caches in these remote Infinispan servers. @nginx_official @DockerInc @infinispan #keycloak #nginx #dock...
Deploy Keycloak to Production pt 1: Docker, NGINX, HTTPS
Переглядів 11 тис.Рік тому
How to productionize your Keycloak server and serve HTTPS requests via an NGINX reverse proxy. @nginx_official @DockerInc #keycloak #nginx #docker #dockercompose
Java API Client: Send Secure Elasticsearch HTTP Requests From Spring Boot Application @elastic
Переглядів 851Рік тому
Java API Client: Send Secure Elasticsearch HTTP Requests From Spring Boot Application @elastic
Secure Elasticsearch and Kibana 8.7.0 using Docker Compose
Переглядів 1,7 тис.Рік тому
Secure Elasticsearch and Kibana 8.7.0 using Docker Compose
Keycloak: Add ability to login using Github
Переглядів 1,4 тис.Рік тому
Keycloak: Add ability to login using Github
Run Docker Compose App in IntelliJ IDEA
Переглядів 1,8 тис.Рік тому
Run Docker Compose App in IntelliJ IDEA
Configure HTTPS in NGINX for Keycloak Using Docker Compose
Переглядів 10 тис.Рік тому
Configure HTTPS in NGINX for Keycloak Using Docker Compose
Spring Boot + Angular: Create an Interactive WebSocket Application
Переглядів 7 тис.Рік тому
Spring Boot Angular: Create an Interactive WebSocket Application
Nifty Date Formatting Trick (Java/Kotlin) #java #kotlin
Переглядів 44Рік тому
Nifty Date Formatting Trick (Java/Kotlin) #java #kotlin
Keycloak Admin Console: Defining Your Password Policies
Переглядів 346Рік тому
Keycloak Admin Console: Defining Your Password Policies
Keycloak Admin Console: Quickly Add Remember Me and Forgot Password to Login Page
Переглядів 1,6 тис.Рік тому
Keycloak Admin Console: Quickly Add Remember Me and Forgot Password to Login Page
Keycloak: Add Registration Form in less than 2 minutes
Переглядів 4 тис.Рік тому
Keycloak: Add Registration Form in less than 2 minutes
How to add TLS/HTTPS to Keycloak with Docker Compose
Переглядів 13 тис.Рік тому
How to add TLS/HTTPS to Keycloak with Docker Compose
thx for guide!
Well done! Merci
Can you share the source code?
Very good and very helpful video, thank you so much, you doing good work! Have a nice day!
i just discovered your channel, brother you are good at explaining obviously you are a kind person toward others because you care about the person watching your video to ensure he understands, you are awesome, it is very rare, please continue to post videos and share, i subscribed now, do not want to see a channel like this stopping
Thanks you!
Hi! Thank for tutorial, and i have a question: lets assume i want to separate user and member entities so that user is keycloak user, stored in kc database, and member is an entity, which is managed by 'members' microservice of my backend project for example. User is used for authentication, and member is used for complex authorization at microservice side. Also, User has attribute 'member_id' to associate with a specific member. When user registers himself with registration form, keycloak should invoke 'members' microservice to create a member with name and surname specified in registration form. The obtained id of created member should be stored in 'member_id' attribute of keycloak user. This attribute will be put into access tokens so that microservice can implement any authorization process. I think it is possible to implement such logic with EventListenerProvider, but what if 'members' endpoint invokation fail? For example, it returned code 400 or 500. Obviously, in this case the whole registration process should fail and no user in KC should be stored, otherwise we have data inconsistency. How to solve this problem?
please add the source code. And you have to show the project file structure also in the video. This will help a lot!
Thank you. Is there a way to add a claim that has a list as it's value. And can this list be dynamic?
This is great but as complex as this is we could really benefit from at least an example repository containing these configurations
Why are you using start-dev if its for production? Change it to start and see if it works.
Nowhere in my title did I say it's for production. There's a different production video in my channel
Full video: ua-cam.com/video/20jviu1Kcqk/v-deo.html
Hi, thanks for the video. Please is it possible to have access to those events in the java code and then maybe perform some operation based on the event type. In my case, when a User is registered, i want to call a createUserWallet method in my project. How do i go about it? Currently the logs only print in Docker, i need a way to access those values in the Java code. Thanks in anticipation.
Yes. When the event happens send a HTTP request to an endpoint in your project. That endpoint then calls createUserWallet
@@code-215 Thanks for your response. But I have tried this and it didn’t work. The issue I’m having is the the onEvent method isn’t getting triggered so all codes within it isn’t working. I tried printing the eventType to the console, nothing shows up, but for some reasons When I use docker logs <containerId> I see all the events in real-time. But it’s not being picked up in my onEvent method.
If you followed the steps in this tutorial it should work. I think you missed a step. Verify that you've added the SPI to Keycloak and saved it(as shown at 10:35). Make sure you've implemented the right classes and methods. The onEvent() you override should be the one with the AdminEvent parameter not Event parameter. Make sure your folder structure is correct. Verify that you have followed all the steps in this tutorial.
@@code-215 bro, but what about if createUserWaller fails? There is an uncosistency of data, when user is created within keycloak db, but wallet doesn't exist.
Thank you for watching this video. Please feel free to buy me a coffee www.buymeacoffee.com/Code215
Thank you for watching this video. Please feel free to buy me a coffee www.buymeacoffee.com/Code215
Thank you for watching this video. Please feel free to buy me a coffee www.buymeacoffee.com/Code215
Thank you for watching this video. Please feel free to buy me a coffee www.buymeacoffee.com/Code215
{ "error": "unknown_error", "error_description": "For more on this error consult the server log at the debug level." } getting this when localhost:8080/admin/realms/school/users
Fantastic tutorials. Simple and easy to follow. Thank you @code-215
Fantastic tutorials. Simple and easy to follow. Thank you @code-215
Sir How can I add the resources in the keycloak user token payload? I have created the resources, scopes, policies and permissions in the keycloak now i want to add the resources according to the user roles in the user token. please ans
Hey , The video is great also please provide the git repo link that will be useful .
Thank you for the detailed installation video. Could you please share the Docker files as well? It would be a great help
So helpful!
hahaha there is no way it was this simple, great video
Simple indeed!
But how can I create a custom api.. registration a new user.. without any authentication?
Thank you!!!
Glad I could help!
tnks
Glad I could help!
Thank you! So since a Keycloak User is bound to a realm and not a client, am I correct in saying that you would just create this Client with only password credential type in your video for your backend say spring boot microservice in order for it to reach Keycloak's API endpoints , and then you create ANOTHER Keycloak client in the same realm which uses like authorization code grant flow or maybe PKCE enhanced, and that user will still exist under that client used for frontend -> keycloak login page -> redirect uri with auth code -> access token ???
not working for me; so frustrating. im on my mac trying to set it up on my remote linux server. i tried following your basic steps and also using haproxy. i either get content policy errors or redirect uri issues
попробуйте отдебажить hostname.
@@sergeyshvyrev969 no I can’t remember exactly the issue but it was something stupid and minor
Can you give me the git repository. Please !!!.
Can you give me the git repository. Please !!!
16:48 "I know it means like it's a bit confusing" is a favour to Keycloak. Thanks for the demo, it's been really helpful! Thank you so much!
😂 Glad it helped
Full video: ua-cam.com/video/3YqPa6hhwxw/v-deo.html
Thanks for sharing, is it possible to share configuration in a github repo🤔
In my case Im facing error of ERROR: class java.lang.String cannot be cast to class [B (java.lang.String and [B are in module java.base of loader 'bootstrap
Im my case it didn't work, I'm facing an error `ERROR: class java.lang.String cannot be cast to class [B (java.lang.String and [B are in module java.base of loader 'bootstrap`
1) What version of Keycloak and Infinispan are you using? 2) Where are you getting this error? In Keycloak or in Infinispan?
Thanks for replying me, Im using keycloak 24.0.2 with infinispan 14.0.27.Final. The error looks like to be on keycloak
It's hard to say what's wrong without more info. Is there a stacktrace?
@@code-215 I had to change marshalling type. For somereason using protostream (recommended one from infinspan) does not work, I also have tried with jboss-marshalling buit if fails to parse uuid and other things. So finally only java-object worked, but worked for specific models! No Im trying to include sessions and it's complaing about: java.lang.NoClassDefFoundError: │ │ org/keycloak/models/UserSessionModel$State java.lang.ClassNotFoundException: org.keycloak.models.UserSessionModel$State It's seens that infinispan does not has this model to unmarshal the data, however I have included all these jars as well as included the allow list on encoding of both "org.keycloak.*" and "java.util.*"
Does GC happens in keycloak frontend or in infinispan cache? IF GC happening in infinispan will it affect the frontend ?
Garbage Collection is done by the JVM so it will happen in the Infinispan servers
@@code-215 while doing so will frontend be affected ? if gc is happening on one infispan server, will the other server still work or will it affect the other server also? i m facing the issue in current embedded keycloak when GC is happening on one server the other server requests also stops working
Full video here: ua-cam.com/video/XlPmq06swH4/v-deo.html
Straight to the point and precise. Very helpful!
Thanks!
nice video, thank you
Thank you for sharing. It would be great if you could share the configuration via a Git repository 👍
nice work
Hi! Great work, nevertheless I'm having issues with a slight newer version of Keycloak, namely the 23.0.4 which has an almost identical UI as your version. In my case when I configure the client on the "Capability config" to have ON the Client Authentication and Authorization (and having only the "Service accounts roles" on by default), what happens is that the service-account-my-bogus-client user is not created (or at least doesn't show up in the user list). When I generate the JWT exists this: "preferred_username": "service-account-my-bogus-client". When I try to create manually that user Keycloak says that the user cannot be created as it exists already. Now I'm very confused as I have no idea how to configure that user to e.g. create a new user through the Keycloak's API. Any ideas? Keep up the excellent work, it's priceless what you've been posting for us!
Go to Clients -> <your client>. Click on the Service accounts roles tab and click on Assign role. In the dropdown select 'Filter by clients' and assign the 'manage-users' role to your client
@@code-215 Thank you so much!
Show gitrepo
Thank you guide. Did you have a Git with these files? If not maybe you can create one and upload your compose files for the demo, please? Thanks
Great tutorial! I was looking for a configuration for Postgres and Keycloak docker compose and that's exactly what I was looking for. I searched online and what I found until your video did not work for me. I don't know why. When I docker compose up, Keycloak container was alwasys exited. I could not figure out but this worked. I only watched part1 and part2. I will continue with the rest of it. Thank you so much!
Thank you for watching this video. Support the channel by buying me a coffee www.buymeacoffee.com/Code215
Thank you for watching this video. Support the channel by buying me a coffee www.buymeacoffee.com/Code215
Thank you for watching this video. Support the channel by buying me a coffee www.buymeacoffee.com/Code215
Thank you for watching this video. Support the channel by buying me a coffee www.buymeacoffee.com/Code215