- Видео 40
- Просмотров 66 141
Himanshu Sharma
Индия
Добавлен 5 авг 2010
Spring Modulith: Testing Modules - Part 3
Hello everyone,
In this video, we continue our Moudlith journey and test our application modules.
Github:
github.com/himanshuntwk/spring-projects/tree/main/modulith-demo
In this video, we continue our Moudlith journey and test our application modules.
Github:
github.com/himanshuntwk/spring-projects/tree/main/modulith-demo
Просмотров: 20
Видео
Spring Modulith: Playing with Events - Part 2
Просмотров 81День назад
Hello everyone, This video is in continutation to my previous video on Spring Modultih. It showcase more features available in modular applications. *Github link contains code for part 3 of this video also. Github: github.com/himanshuntwk/spring-projects/tree/main/modulith-demo
Spring Modulith: Introduction and Application Structure - Part 1
Просмотров 12821 день назад
Hello everyone, This video is about Spring Modulith and how you can create modules as per the opinion. *Github link contains code for part 2 and 3 of this video also. Github: github.com/himanshuntwk/spring-projects/tree/main/modulith-demo
Spring WebFlux - Part 2 : Accessing Reactive REST endpoints
Просмотров 1448 месяцев назад
Hello everyone, In this video we will we create a client microservice which access reactive endpoints exposed in a different micorservice. This is in continuation to my previous video : ruclips.net/video/gaY0VwVBIZM/видео.html Github Link: github.com/himanshuntwk/spring-projects/tree/main/reactive-client
Spring WebFlux - Part 1 : Reactive REST endpoints and DB persistence
Просмотров 2209 месяцев назад
Hello everyone, In this video, we will be creating reactive endpoints which will interactive with database to fetch and update data. Github Link: github.com/himanshuntwk/spring-projects/tree/main/reactive-web
Vaadin - Build UI in java
Просмотров 3009 месяцев назад
Hello everyone, In this video, we will see how easy it is to build UI in java using vaadin. Github Link: github.com/himanshuntwk/spring-projects/tree/main/phone-book
Building AI app using Spring AI
Просмотров 23210 месяцев назад
In this video, we will create an AI application which interacts with LLM models and vector database using Spring AI. The complete setup will be on local and will not require any external AI or database service subscription.
Exception Handling in Spring MVC
Просмотров 139Год назад
Hello everyone, In this video we will go through different ways to implement exception handling in Spring MVC.
Java 21 : Record Pattern, Switch Pattern Matching and Virtual Thread
Просмотров 278Год назад
In this video we will go through 3 new features introduced in Java 21. Record Pattern Switch Pattern Matching Virtual Thread
Spring Authorization Server: Oauth2 Database Setup
Просмотров 3,8 тыс.Год назад
Hello everyone, This video is in continuation to my previous video for Spring Authorization Server setup. In this we will be implementing database persistence to our OAuth2 setup. Github Link: github.com/himanshuntwk/spring-projects/tree/database_connect/spring-authorization-server Previous Video: ruclips.net/video/0C9S1yBSSO8/видео.html
Spring Authorization Server : A simple Oauth2 setup
Просмотров 10 тыс.Год назад
Hello everyone, In this video, we will test a simple OAuth2 setup comprises of a client, authorization server and a resource server. Github Link: github.com/himanshuntwk/spring-projects/tree/main/spring-authorization-server
Spring Security : Keycloak Authorization in Spring Boot Part - 2
Просмотров 930Год назад
In this video we enhance our application to support Keycloak authorization error. This video is in continuation to previous video : ruclips.net/video/bBQ_c2BpMC4/видео.html
Spring Security : Keycloak Authorization in Spring Boot Part - 1
Просмотров 4,1 тыс.Год назад
In this video, we will be setting up Keycloak authorization on a Spring Boot application. This is in continuation to my previous video on basic Keycloak authentication in Spring Boot. Github Link: github.com/himanshuntwk/spring-projects/tree/main/spring-keycloak-auth
Spring Security : Securing API using Keycloak
Просмотров 1,4 тыс.Год назад
In this video, we will be covering a basic setup of securing REST API using Keycloak.
Spring Security : Authorization and Resource Server
Просмотров 1,5 тыс.Год назад
Hello everyone, In this video, we will create a basic setup of authorization server and resource server in spring boot.
Spring Security : Endpoint Authorization
Просмотров 604Год назад
Spring Security : Endpoint Authorization
Spring Security : Custom Authentication
Просмотров 6 тыс.Год назад
Spring Security : Custom Authentication
Spring Cloud Stream with Kafka Binder
Просмотров 10 тыс.Год назад
Spring Cloud Stream with Kafka Binder
Hi Himanshu Can you cover the spring modulith events (ApplicationModuleListener) in next part
It is in part 2 Spring Modulith: Playing with Events - Part 2 ruclips.net/video/xNzOsmlbcfU/видео.html
Some GPT to complete the video: Interceptor Purpose: Interceptors are used to perform operations before and after handler methods’ execution in Spring MVC. They provide a way to intercept and modify the requests and responses at different stages of request processing like pre-handle, post-handle, and after-completion. Usage: Pre-handle: Code that you want to execute before the request reaches the controller. Post-handle: Code that you want to execute after the controller method has been called but before the view is rendered. After-completion: Code that you want to execute after the view is rendered and the request is complete. Filter Purpose: Filters, part of the Java Servlet specification, operate at a lower level compared to Interceptors. They can be used for tasks such as authentication, logging, and input validation by filtering out requests and responses. Usage: Filters can be applied to every request that enters your web application, regardless of the specific controller that's handling the request. Key Differences: Scope: Filters can apply to any request within the application, but Interceptors are scoped to the Spring MVC layer and are tied to specific controllers. Order of Execution: Filters execute before Interceptors as they are part of the broader servlet processing chain.
Thank you. Truly a talented teacher!
Great video... very well explained.
Please continue the Modulith series
Great explanation 👍
Add CSRF Code Disable Code for work with POST method @Configuration @EnableWebSecurity public class SecurityConfig { @Bean public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws Exception { httpSecurity.csrf(AbstractHttpConfigurer::disable) .httpBasic(Customizer.withDefaults()) .authorizeHttpRequests(auth ->auth.anyRequest().authenticated()); return httpSecurity.build(); } }
ጀግና
Great video explained very well
Thank you for this tutorial. Excellent job.
use dev tools, so that no need to restart server every time you make changes.. it takes lot of time to spin up server
Note for people that already have java installer on your device : When you add the graalVM bin into the env variables "Path", make sure that the path to the graalVM bin is above the java one.
Nice video..really its helped
What would you suggest to do, if the client wants to connect to the server and the server is offline?
This is a currently up-to-date and compatible video. There will be no code explanations for the old version with "@EnableStream(Source.class)".
very nice !!!!
Nice video. Would like to know what happens when you return false in the pre method. For example, how do you turn back requests that are missing valid header information? Thanks.
Hi Himanshu Sharma, I follwed the same steps as explained in the video, after giving username and password I am getting : Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Tue Aug 20 13:36:27 IST 2024 There was an unexpected error (type=None, status=999). Can you please help me here how to resolve
header thing was very nice
I have implemented the same way, I m getting 200 response but response body is coming empty please help me.
Hope u have solved the issue. I think few code changes may require
Many hours spent and not working with spring boot 3.3.3. No message ... solution was a restart
I have a CustomRegistroryClientRepository like CustomUserDetailsService, in users way we use AuthenticationManagerBuilder to set the userDetailsService is their any way like that to make my authorization server know about my customRegistredClientRepository please help me, Thank you in advance
I have a CustomRegistroryClientRepository like CustomUserDetailsService, in users way we use AuthenticationManagerBuilder to set the userDetailsService is their any way like that to make my authorization server know about my customRegistredClientRepository please help me, Thank you in advance
I have a CustomRegistroryClientRepository like CustomUserDetailsService, in users way we use AuthenticationManagerBuilder to set the userDetailsService is their any way like that to make my authorization server know about my customRegistredClientRepository please help me, Thank you in advance
How can i achive whitelisting here? Please reply
Bhai whitelisting ka kaise krna h?
very good explanation what i have learned in Spring Security in action book i watch all hands on here. thank you @Himanshu
Can you please tell me how to permit the Swagger UI? I tried adding the Swagger URIs in the filter chain method using 'permitAll', but it is not working. I also added the Swagger URIs in the `enforcement.json` file in the `path` array, and it worked, but then authorization for the endpoints stopped working. How can I resolve this issue?
Please create a video to whitelist endpoints
How to whitelist endpoints here ?
How to whitelist endpoints? Before anyRequest.authenticated() I have added requestmatches permit all for some of the endpoints but it is not working
It was a really nice teaching, brother. Let me ask you one question. When I log into the auth server using a post request like below, i got an "invalid_client" error: curl --location 'localhost:8080/oauth2/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Basic Y2xpZW50X2lkOmRlbW8=' \ --header 'Cookie: JSESSIONID=C17D21A7209EBA2EC798B6EC5E819F5E' \ --data-urlencode 'grant_type=password' \ --data-urlencode 'client_id=demo' \ --data-urlencode 'client_secret=secret' \ --data-urlencode 'username=sosereyboth' \ --data-urlencode 'password=123' I used postman to generate this request.
Volume is too low
No files are shown in my kafkalytic plugin. What to do???
nice video 👍 , Can we use ready bootstrap template in Vaadin?
Thanks, Might be one of the below link help you - For templates they have that option - vaadin.com/docs/latest/create-ui/templates For bootstrap components they have bootstrap addon - vaadin.com/directory/component/bootstrap-for-vaadin
@@h7sharma this URL is talking about Vaadin template & it's UI limitation, I meant , same AdminLTE html templates , is it possible to get html template into Vaadin front-end and use it as vaadin ui elements ?
@@h7sharma it seems too complex , and it says it was stopped after vaadin 18 😒
Thank you !! It helped a lot to get started with OAuth2 setup
Glad it helped!
Nice Video... could u provide sample video for granttype password
Very good bro. It Helped
nice, bread 👍
I used to not be able to listen to the Indian accent, but thanks to you, I broke it. Thx for all informatiıns and work.
Dude your tutorials are amazing... This is first time I'm working with Spring Boot... by far the best.
Hey Himanshu, if possible please make a new video on DGS based on Microservice pattern. BTW your content is amazing and really helpful 😊
Excellent
I coded exactly same but it is not working. Client redirects to Auth server and then auth server asks for credentials and then keep asking for it infinitly. No error , nothing but simply not working.
Hi thanks for this great video. What version of keycloak are you using?
Keycloak - Version 21.1.2
@@h7sharma I'm getting PERMISSION_TOKEN_ERROR when trying to access /hello URI via Postman. This error is generated by keycloak server. I don't now what I'm missing here. Appreciate if you could help...
Hi @@todddavid9133, It will be difficult to asses but let me give it a try. Could you check the token you are getting - does the issuer(iss) in that is resolved as localhost or some ip ? Hope you are using the same version and similar code as in my video (git repo). If not could you please share the git repo.
Very Good Video Brother.. You made 'OAuth2 with SpringBoot process' very simple. A small suggestion though, If you could slow down a bit while explaining the stuff and moving between the windows that would be a compelling presentation.
Thanks a lot for the suggestion. Really appreciate it and will ensure in future videos.
What you said is very simple and easy to understand, but I don't understand how the resource server verifies the token provided by the authorization server.Can you help me?
tokens like JWT are base64 encoded, they contain information that can be extracted for validation by resource server. This might help - jwt.io/introduction
You are blinding people with this video. There are darker themes for a reason.
Extending from thix video,, can you show example of programmatically login onto the auth server to get the token? In your current video, you are using thr browser to interactively login to obtain the token.
Hi, I am making browser request for the client service URL, but the token is retrieved programmatically only by client service. Browser request >> Client Service (interact with auth server) >> resource server (secured by auth server) ruclips.net/video/0C9S1yBSSO8/видео.html
@@h7sharma my use case is API -> gateway -> resource server. I am try to fit the spring authorisation server into this equation. I can get token from authorisation server and access the resource server . However I am not able to get to the resource server via the gateway. When I made the rest of call,the gateway redirect me to a login page.
Everything is perfectly built, but there is no generated class and there is no source folder, please help?
Could you please share repo link.
@@h7sharma i can't send a link idk why
@@h7sharma i folow u my username is ransuum and project name like JvA
i follow u my username is ransuum and repo is JavaDeveloperTask
@@ransuum5961 I get it I referred your repo, the issue is you put proto folder inside java package. It should be alongside java package