Himanshu Sharma
Himanshu Sharma
  • Видео 40
  • Просмотров 66 141
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
Просмотров: 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 Security : A basic setup
Просмотров 1,5 тыс.Год назад
Spring Security : A basic setup
Interceptor and Filter in Spring
Просмотров 2,3 тыс.Год назад
Interceptor and Filter in Spring
Spring Boot caching
Просмотров 363Год назад
Spring Boot caching
Spring Cloud Stream with Kafka Binder
Просмотров 10 тыс.Год назад
Spring Cloud Stream with Kafka Binder
Redis with Testcontainers in Java
Просмотров 425Год назад
Redis with Testcontainers in Java
Spring Boot with OpenAPI
Просмотров 404Год назад
Spring Boot with OpenAPI
Future and CompletableFuture in Java
Просмотров 549Год назад
Future and CompletableFuture in Java
Reflection in Java
Просмотров 70Год назад
Reflection in Java
Multithreading in Java
Просмотров 106Год назад
Multithreading in Java
Spring Boot GraalVM vs Non Native
Просмотров 922 года назад
Spring Boot GraalVM vs Non Native
GraalVM Native Java on Windows
Просмотров 4,1 тыс.2 года назад
GraalVM Native Java on Windows
Spring Boot with Apache Kafka
Просмотров 2412 года назад
Spring Boot with Apache Kafka
Reactive Spring Boot Mongo DB Docker
Просмотров 2102 года назад
Reactive Spring Boot Mongo DB Docker

Комментарии

  • @arshadsyed4640
    @arshadsyed4640 2 дня назад

    Hi Himanshu Can you cover the spring modulith events (ApplicationModuleListener) in next part

    • @h7sharma
      @h7sharma 2 дня назад

      It is in part 2 Spring Modulith: Playing with Events - Part 2 ruclips.net/video/xNzOsmlbcfU/видео.html

  • @himanshuk177
    @himanshuk177 4 дня назад

    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.

  • @Ands629
    @Ands629 4 дня назад

    Thank you. Truly a talented teacher!

  • @saikat44
    @saikat44 8 дней назад

    Great video... very well explained.

  • @arshadsyed4640
    @arshadsyed4640 12 дней назад

    Please continue the Modulith series

  • @arshadsyed4640
    @arshadsyed4640 12 дней назад

    Great explanation 👍

  • @theslowinsight
    @theslowinsight Месяц назад

    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(); } }

  • @yohannesmolla6438
    @yohannesmolla6438 Месяц назад

    ጀግና

  • @roshnimohan6497
    @roshnimohan6497 Месяц назад

    Great video explained very well

  • @victorcollazo8121
    @victorcollazo8121 2 месяца назад

    Thank you for this tutorial. Excellent job.

  • @TejaSays
    @TejaSays 2 месяца назад

    use dev tools, so that no need to restart server every time you make changes.. it takes lot of time to spin up server

  • @tilu__497
    @tilu__497 3 месяца назад

    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.

  • @swjny29
    @swjny29 3 месяца назад

    Nice video..really its helped

  • @tgamings1
    @tgamings1 4 месяца назад

    What would you suggest to do, if the client wants to connect to the server and the server is offline?

  • @playboxjrekong9186
    @playboxjrekong9186 5 месяцев назад

    This is a currently up-to-date and compatible video. There will be no code explanations for the old version with "@EnableStream(Source.class)".

  • @playboxjrekong9186
    @playboxjrekong9186 5 месяцев назад

    very nice !!!!

  • @brucevwilcox1002
    @brucevwilcox1002 5 месяцев назад

    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.

  • @praveenak-u5t
    @praveenak-u5t 5 месяцев назад

    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

  • @rahulagnihotri344
    @rahulagnihotri344 5 месяцев назад

    header thing was very nice

  • @bhavnabhanu2513
    @bhavnabhanu2513 6 месяцев назад

    I have implemented the same way, I m getting 200 response but response body is coming empty please help me.

    • @haridasspm1987
      @haridasspm1987 3 месяца назад

      Hope u have solved the issue. I think few code changes may require

  • @ElmshornBoy
    @ElmshornBoy 6 месяцев назад

    Many hours spent and not working with spring boot 3.3.3. No message ... solution was a restart

  • @memsofgamers9479
    @memsofgamers9479 6 месяцев назад

    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

  • @memsofgamers9479
    @memsofgamers9479 6 месяцев назад

    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

  • @memsofgamers9479
    @memsofgamers9479 6 месяцев назад

    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

  • @codingispassion6376
    @codingispassion6376 6 месяцев назад

    How can i achive whitelisting here? Please reply

  • @codingispassion6376
    @codingispassion6376 6 месяцев назад

    Bhai whitelisting ka kaise krna h?

  • @memsofgamers9479
    @memsofgamers9479 6 месяцев назад

    very good explanation what i have learned in Spring Security in action book i watch all hands on here. thank you @Himanshu

  • @codingispassion6376
    @codingispassion6376 6 месяцев назад

    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?

  • @codingispassion6376
    @codingispassion6376 6 месяцев назад

    Please create a video to whitelist endpoints

  • @codingispassion6376
    @codingispassion6376 6 месяцев назад

    How to whitelist endpoints here ?

  • @codingispassion6376
    @codingispassion6376 7 месяцев назад

    How to whitelist endpoints? Before anyRequest.authenticated() I have added requestmatches permit all for some of the endpoints but it is not working

  • @sosereyboth1469
    @sosereyboth1469 7 месяцев назад

    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.

  • @NarenkumarMoorthyVisalatchi
    @NarenkumarMoorthyVisalatchi 7 месяцев назад

    Volume is too low

  • @RahulSaini-pp5kz
    @RahulSaini-pp5kz 7 месяцев назад

    No files are shown in my kafkalytic plugin. What to do???

  • @muslehhaj4164
    @muslehhaj4164 8 месяцев назад

    nice video 👍 , Can we use ready bootstrap template in Vaadin?

    • @h7sharma
      @h7sharma 8 месяцев назад

      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

    • @muslehhaj4164
      @muslehhaj4164 8 месяцев назад

      @@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 ?

    • @muslehhaj4164
      @muslehhaj4164 8 месяцев назад

      @@h7sharma it seems too complex , and it says it was stopped after vaadin 18 😒

  • @navaneetbadami4031
    @navaneetbadami4031 8 месяцев назад

    Thank you !! It helped a lot to get started with OAuth2 setup

    • @h7sharma
      @h7sharma 8 месяцев назад

      Glad it helped!

  • @santhisivakumar5463
    @santhisivakumar5463 9 месяцев назад

    Nice Video... could u provide sample video for granttype password

  • @samallangi
    @samallangi 9 месяцев назад

    Very good bro. It Helped

  • @blueeyes9691
    @blueeyes9691 9 месяцев назад

    nice, bread 👍

  • @gmgunesoglu
    @gmgunesoglu 9 месяцев назад

    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.

  • @alexmercerind
    @alexmercerind 9 месяцев назад

    Dude your tutorials are amazing... This is first time I'm working with Spring Boot... by far the best.

  • @AshwaniKumarTrading
    @AshwaniKumarTrading 9 месяцев назад

    Hey Himanshu, if possible please make a new video on DGS based on Microservice pattern. BTW your content is amazing and really helpful 😊

  • @nadetdevfullstack7041
    @nadetdevfullstack7041 9 месяцев назад

    Excellent

  • @hackstreet781
    @hackstreet781 9 месяцев назад

    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.

  • @todddavid9133
    @todddavid9133 9 месяцев назад

    Hi thanks for this great video. What version of keycloak are you using?

    • @h7sharma
      @h7sharma 9 месяцев назад

      Keycloak - Version 21.1.2

    • @todddavid9133
      @todddavid9133 9 месяцев назад

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

    • @h7sharma
      @h7sharma 9 месяцев назад

      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.

  • @prasad19650
    @prasad19650 9 месяцев назад

    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.

    • @h7sharma
      @h7sharma 9 месяцев назад

      Thanks a lot for the suggestion. Really appreciate it and will ensure in future videos.

  • @yichenbai-ig5pn
    @yichenbai-ig5pn 9 месяцев назад

    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?

    • @h7sharma
      @h7sharma 9 месяцев назад

      tokens like JWT are base64 encoded, they contain information that can be extracted for validation by resource server. This might help - jwt.io/introduction

  • @meilyn22
    @meilyn22 10 месяцев назад

    You are blinding people with this video. There are darker themes for a reason.

  • @thetrilbies1
    @thetrilbies1 10 месяцев назад

    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.

    • @h7sharma
      @h7sharma 10 месяцев назад

      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

    • @thetrilbies1
      @thetrilbies1 9 месяцев назад

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

  • @ransuum5961
    @ransuum5961 10 месяцев назад

    Everything is perfectly built, but there is no generated class and there is no source folder, please help?

    • @h7sharma
      @h7sharma 10 месяцев назад

      Could you please share repo link.

    • @ransuum5961
      @ransuum5961 10 месяцев назад

      @@h7sharma i can't send a link idk why

    • @ransuum5961
      @ransuum5961 10 месяцев назад

      @@h7sharma i folow u my username is ransuum and project name like JvA

    • @ВалерійДмитренко-о5э
      @ВалерійДмитренко-о5э 10 месяцев назад

      i follow u my username is ransuum and repo is JavaDeveloperTask

    • @h7sharma
      @h7sharma 10 месяцев назад

      @@ransuum5961 I get it I referred your repo, the issue is you put proto folder inside java package. It should be alongside java package