Microservices Security Using JWT | Spring Cloud Gateway | JavaTechie

Поделиться
HTML-код
  • Опубликовано: 3 фев 2025
  • НаукаНаука

Комментарии • 532

  • @treefrog9392
    @treefrog9392 Год назад +38

    I feel like your explanations are even better than people who have english as their first language lol. You really do have a gift for this!

  • @impertator644
    @impertator644 Год назад +33

    I love you. Finally the architecture I'm looking for. A lot of tutorial are covering authentication for only one microservice and you are probably the only one that approaches the problem keeping in mind the whole microservice architecture.

    • @Javatechie
      @Javatechie  Год назад +1

      Thank you so much Lukasz for appreciating my work 🥰🥰

    • @hkkabir2024
      @hkkabir2024 Год назад +1

      you worth millions of like

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

      Is it still applicable in 2024, in the latest version of spring?

  • @pierreescudie1634
    @pierreescudie1634 5 месяцев назад +2

    Finally found an understandable tutorial about securing a Spring Cloud Gateway microservices architecture! A thousand times thank you sir!

  • @cristianlozadapadilla4896
    @cristianlozadapadilla4896 Год назад +4

    THIS IS THE VIDEO I WAS LOOKING FOR, THANKS SO MUCH FROM COLOMBIA

  • @robinhowilson
    @robinhowilson 21 день назад +2

    You saved my day. God bless you. Thanks so much from Mozambique.

  • @feriel6929
    @feriel6929 Месяц назад +2

    Wow, thank you so much! You’re literally my savior 🙏 This video was a lifesaver and exactly what I needed. Keep up the amazing work! 🎉👏 It would be awesome if you could make a video on implementing microservices with role-based authorization . That would be so helpful!

  • @dattatraybharde2902
    @dattatraybharde2902 Год назад +5

    Great Video sir, completely Awesome...Add the role based security through api gateway.

  • @atulpatil1586
    @atulpatil1586 16 дней назад +2

    Amazing🤩, really like the way you explain and handle everything in a very simple way.
    thank you!! it helped me a lot.🙏

  • @davidevangelista1774
    @davidevangelista1774 Год назад +1

    This is the best channel about Spring and stuffs of all RUclips. Thank you Java Techie.

  • @vedhlikith6252
    @vedhlikith6252 Год назад +5

    Best course available in youtube. Thankfully it is free. Keep up the good work

  • @sunderkrishnaupreti561
    @sunderkrishnaupreti561 Год назад +3

    Nobody explains like you do..Thank you very much for the video.

  • @sunilchandran4u
    @sunilchandran4u Год назад +1

    This is Gold Boss... Thanks a ton for this video.. I lost most of my interview only because of not answering how to security is implemented in micro services question.... Appreciate your efforts.

  • @baleshwariaddula4775
    @baleshwariaddula4775 10 месяцев назад +1

    Thank you so much for clear explain no one will explain like you.

  • @cd62
    @cd62 Год назад +1

    Waited last couple of month to get solution which you explain about validate and filter the request form spring cloud getway. ##you make my weekend Basant Sir.
    Thank you Sir

    • @Javatechie
      @Javatechie  Год назад

      Thanks buddy 😊. Keep learning 👍

  • @sivakumar-df9kk
    @sivakumar-df9kk Год назад +1

    Actually without your tutorial I couldn't learn easily new things implementation in spring app...
    You are Guru. Thanks lot.

    • @Javatechie
      @Javatechie  Год назад

      Thank you Siva . Keep learning 😃

  • @arundhwajiiith
    @arundhwajiiith Год назад +1

    Thanks a lot.
    I am looking for security in Microservices architecture. It is one of the best way, you have explained.

  • @shanmukpaila6956
    @shanmukpaila6956 3 месяца назад +1

    We need this kind of videos. It is an end to end tutorial for microservices with security + JWT. Plz make videos on real time deployments with microservice architecture.

  • @manoharanrajendiran568
    @manoharanrajendiran568 Месяц назад +1

    Hi , Boss, Thanks for the video , i am following you since 2018, your videos help me to get move forward .

  • @erichhc9698
    @erichhc9698 Год назад +2

    I've been waiting this long, thanks java techie greetings from peru😎

  • @jh_super_soccer
    @jh_super_soccer Год назад +1

    This is what, I was waiting for ,Very Helpful for me

  • @MohitKumar-bc1rs
    @MohitKumar-bc1rs Год назад +1

    Best video you can find for JWT auth ❤

  • @SayemHasnat-e4h
    @SayemHasnat-e4h Год назад +1

    it's awsome,,
    I was trying to solve this kind of problem and this tutorial helps me a lot.
    Thank You so much for the video tutorial.

  • @manoharanagiaploshan4348
    @manoharanagiaploshan4348 Год назад +1

    Searching every where finally got it thanks sir 😀

  • @ousmanefofana4495
    @ousmanefofana4495 6 месяцев назад +1

    i love you brother, you are the best teacher for learners in this field.

  • @sahilpatel2885
    @sahilpatel2885 Год назад +1

    I had been waiting for this topic for long time. Finally wait is over.

  • @umeshchandra6201
    @umeshchandra6201 Год назад +1

    Excellent Explanation. this is the Video i was looking for. thanks

  • @sonliman2192
    @sonliman2192 6 месяцев назад +2

    This video is very useful for me . Thank you for your time and explanation

  • @PrashantJannu
    @PrashantJannu 7 месяцев назад +1

    Thanks aTon Sir ❤, No one can match your Explanation level 👍

  • @Full-Stack-Project
    @Full-Stack-Project Год назад +1

    Nice video we learn couple of thing related to microservices and spring security ❤❤❤

  • @ManishNegi-il1kf
    @ManishNegi-il1kf 6 месяцев назад +2

    Its a very best content which i ever seen in across youtube .. thanks basant keep it up..

  • @yuvrajph4754
    @yuvrajph4754 Год назад +1

    Awesome video Bhai.. much needed.. thanks a lot for the content shared. 🎉

  • @naidu12341
    @naidu12341 10 месяцев назад +1

    No words Mind Blowing

  • @Mohamed-uf5jh
    @Mohamed-uf5jh Год назад +1

    Thanks Sir , Good explanation, your course was clear and understandable.

  • @AnilKumar-cc8px
    @AnilKumar-cc8px Год назад +3

    Grateful for such a wonderful insight on Microservices security. It will definitely help me to improve skills in my projects. Thankyou so much for the efforts. I'm learning a lot from your channel. Awaiting for more interesting videos.

    • @Javatechie
      @Javatechie  Год назад +1

      Thanks buddy keep learning 😃

  • @nileshdasarwad1668
    @nileshdasarwad1668 Месяц назад +1

    Thank you so much sir for wonderful explanation ❤

  • @ВитяМаксимов-л9ш
    @ВитяМаксимов-л9ш 4 месяца назад +2

    Bro, thank you!!! God bless you!!!

  • @kaushikmitra1982
    @kaushikmitra1982 Год назад +1

    Awesome explanation !!! Really i feel that you are one of the most amazing solution architect !!!

    • @Javatechie
      @Javatechie  Год назад

      Thank you for appreciating buddy. I am just a senior software Engineer not an architect 🤪🤪

  • @giansiccardi6151
    @giansiccardi6151 8 месяцев назад +1

    bro you helped me a lot, thank you very much and greetings from Argentina

  • @rachidbenkitou9023
    @rachidbenkitou9023 Год назад +1

    Good explanation, your course was clear and understandable.

  • @TinoReyna1984
    @TinoReyna1984 11 месяцев назад

    Looks really simple, just as I used to implement the JWT service in a monolithic way, but porting everything to a new independent webservice to validate JWT to access any endpoint without compromising the other webservices.

  • @viveksingh-rt4py
    @viveksingh-rt4py Год назад +1

    Awesome videos. Hats off to you in explaining it in a very simple and easy manner. One question.
    May I know if we have a requirement to secure our swiggy and restaurant service endpoint and grant access based on role, then how we can achieve this requirement .

  • @truthpath184
    @truthpath184 Год назад +1

    Hi Basant sir, Jwt in microservices explanation is so good. Thank you so much...

  • @kevinameda2711
    @kevinameda2711 Год назад +1

    Thank you for such an awesome lecture. We many of us benefit from such work. Continue teaching brother

  • @sriramvenky7926
    @sriramvenky7926 Год назад +1

    thanks for giving us this much excellent content and awesome video

  • @gopisambasivarao5282
    @gopisambasivarao5282 Год назад

    Thanks so much Basant. Appreciate your efforts. I am learning lot from your videos. Waiting for more videos.

  • @maheshy5168
    @maheshy5168 Год назад +1

    Wooooow.... i seached a lot for this kind of scenario but i did not find and in so many interviews i faced this question and got stucked. A million thanks basanth.... it helps us a looooot......👏👏👏🤝🤝🤝🙏🙏🙏 Thanks you so much
    Next Please do videos on TESTING(mockito) microservices end to end and GLOBAL EXCEPTIONAL HANDLING (please think about it)

    • @Javatechie
      @Javatechie  Год назад

      I will share the link with what you mentioned which i already uploaded. Even if you can search in the channel it's already there buddy

    • @Javatechie
      @Javatechie  Год назад

      Exception handling : ruclips.net/video/gPnd-hzM_6A/видео.html

    • @Javatechie
      @Javatechie  Год назад

      Mockito testing: ruclips.net/video/Hh17JDpsKqc/видео.html

  • @wimaxisp
    @wimaxisp Год назад +1

    Wonderful. Thank you very much for sharing

  • @dhirajchavan8364
    @dhirajchavan8364 Год назад +1

    Thanks!! Helpful for basic understanding.

  • @PatilShantanu-c2t
    @PatilShantanu-c2t Год назад +1

    Thank you, Basant Bhai...

  • @aryanaryan9759
    @aryanaryan9759 Год назад +3

    Much waited ❤ Thank you sir for your wonderful teaching and the knowledge your sharing .

  • @adanali3652
    @adanali3652 Год назад

    You are super talented man.clear explanation .Thank you

  • @Crazyfactzz123
    @Crazyfactzz123 11 месяцев назад +1

    Thank you for this wonderful video❤️❤️

  • @filz4461
    @filz4461 Год назад +4

    You have one of the best educational channels out there. I would love to give you a constructive opinion: It would be great if you could change your microphone into something clearer, like what the java brain and Navin have. Trust me, it makes a huge difference.

    • @Javatechie
      @Javatechie  Год назад +2

      Thanks Filz , i noted it and going forward i will come with better audio quality. Need to look into rode configuration

    • @archanasingh3060
      @archanasingh3060 Год назад +1

      ​@@Javatechie 🎉d o 😢😢😢😮😊😂😅😅😅😅😮😮😮😮😮😅😮fq😢😢😢😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮

    • @Javatechie
      @Javatechie  Год назад

      Archana not getting you

    • @filz4461
      @filz4461 Год назад

      @@Javatechie I think, that's a bot.

    • @Javatechie
      @Javatechie  Год назад

      Even not getting you buddy. What do you mean by bot

  • @lucienmakutano3574
    @lucienmakutano3574 Год назад +1

    Thank you for this tutorial... Kudos

  • @aadiraj6126
    @aadiraj6126 Год назад +2

    Hey Basant Anna, this is awesome 👌thanks for such a smooth flow..its really a very complex topic & nightmare for interview candidates.

  • @rounakmaity4
    @rounakmaity4 8 месяцев назад +1

    Excellent Work....Thank you

  • @premraj.m
    @premraj.m 11 месяцев назад +2

    52:00 Auth service integrate with Gateway
    56:00 Validate token

  • @AjayGupta-ob8oe
    @AjayGupta-ob8oe Год назад +1

    Thanks for sharing the knowledge ❤

  • @romanas7587
    @romanas7587 Год назад +1

    Loved your explaination ❤❤❤❤

  • @AlmustaphaTukurUmar
    @AlmustaphaTukurUmar Год назад +3

    This Video is really helpful, Pls. Can you cover Role base authentication and Authorization on the individual microservices?

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

      My approach for this is to apply filters to individual microservice,
      in which set up the securitycontextholder
      which would look something like below
      UsernamePasswordAuthenticationToken authenticationToken =
      new UsernamePasswordAuthenticationToken(username, null, authorities);
      SecurityContextHolder.getContext().setAuthentication(authenticationToken);
      This is working for me.

  • @andywang4189
    @andywang4189 6 месяцев назад +1

    Quite informative, thanks!

  • @vaderashyam7207
    @vaderashyam7207 Год назад +3

    Wow Very Nicely Explained In Easy To Understand Manner.
    1 Request can you please show how to implement role based authentication with Spring API Gateway ?

    • @Javatechie
      @Javatechie  Год назад +2

      Yes buddy it's in queue i will upload soon

  • @supun_sandaruwan
    @supun_sandaruwan Год назад +1

    superb clear video

  • @ouyoussmeryem1916
    @ouyoussmeryem1916 Месяц назад +1

    you're really amazing thank you so mutch

  • @inhtruongvu7618
    @inhtruongvu7618 Год назад

    00:05 Triển khai Bảo mật dựa trên JWT trong microservice bằng Spring Cloud Gateway
    07:12 Hai dịch vụ vi mô, Swiggi Service và dịch vụ nhà hàng, đang liên lạc với nhau thông qua API Gateway.
    21:19 Cần phải viết một phương pháp để đăng ký người dùng, tạo mã thông báo và xác thực mã thông báo
    28:07 Đã triển khai các điểm cuối xác thực và xác thực mã thông báo.
    41:40 Xác định Dịch vụ chi tiết người dùng của riêng bạn để xác thực người dùng
    48:42 Đã hoàn tất triển khai dịch vụ nhận dạng
    1:02:00 Xác thực mã thông báo trong API Gateway
    1:09:10 Triển khai logic xác thực mã thông báo JWT trong Cổng
    1:22:07 Triển khai bảo mật microservice bằng xác thực JWT
    Crafted by Merlin AI.

  • @roshanpatro5777
    @roshanpatro5777 Год назад +1

    Fantastic video and an outstanding explanation ❤‍🔥. Thank you so much!!!

  • @suresh1250
    @suresh1250 10 месяцев назад +1

    Thank you very much for providing such a detailed explanation. Your video is undoubtedly superior to paid courses that tend to overcomplicate things and stretch on for more than 8 hours.
    I have a question: If I were to call Swiggy or a restaurant service directly, bypassing the gateway or discovery service, how would I handle authentication?

    • @vivekbansal-bc9eg
      @vivekbansal-bc9eg 6 месяцев назад +1

      you can't but you can make that api endpoint in api gateway itself

  • @pavankumarmantha
    @pavankumarmantha Год назад +6

    instead of completely using spring cloud stack we can make this more OSS (open source stack) like every micro service is containerised (dockerised) then use KONG as API gateway. this way we can make the configuration more simple and reduce tight coupling.

    • @mirarima8877
      @mirarima8877 Год назад +1

      Could you please explain more about how that works?

    • @amankumar-f4n5r
      @amankumar-f4n5r Год назад

      can you please come with your hands on similar like this using KONG.

  • @nirmesh44
    @nirmesh44 Год назад +1

    The best explanation

  • @faixan13
    @faixan13 11 месяцев назад

    finally someone addressed this scenario with proper explanation. Thanks as always.
    one question that if auth service also has to pass through api gateway and we didn't add filter param in gateways routes for auth service then why we are checking those urls through validators in authentication filter ? because request will never land on filter in case of /register and /token api

    • @Javatechie
      @Javatechie  11 месяцев назад

      No usually we should do a rest call to identify service from gateway to validate and get token but here to avoid that I have directly used jwt logic in gateway that's why it's confusing for you

    • @faixan13
      @faixan13 11 месяцев назад

      ​@@Javatechie but that rest call we are doing lately when all the checks are true before that. I am talking about that "if" condition in start (validator.isSecured.test(exchange.getRequest())) {
      because in this condition we are checking /register and /token urls to bypass the token check and according to implementation when we will call register or token it would never land on Authentication Filter.
      let me know if I am missing something still.

    • @Javatechie
      @Javatechie  11 месяцев назад

      That's correct right. In the filter we had token validation logic right? So when i don't want to authenticate the user for the first time login then why do you want this to be delegated to filter what is the sense here ?
      Let me know if I understand your concern correctly. If not please drop an email to javatechie4u@gmail.com

    • @faixan13
      @faixan13 11 месяцев назад

      @@Javatechie no I dont want to authenticate for the first time.
      I am just saying that, main if condition is of no use when we will call /register or /token , it does not matter if the condition is there or not.
      Will email no problem

    • @Javatechie
      @Javatechie  11 месяцев назад

      @@faixan13 okay simple things buddy remove those 2 url from validator don't bypass it and run your app then test . Hope you will get your point.

  • @Akash-tq1ui
    @Akash-tq1ui Год назад +4

    Hi Basant ,
    Very useful tutorial however I have one doubt, In production when the token is generated by passing a valid username and password it should automatically pass the token to the gateway right but here I saw that you are manually passing the token to the gateway through Postman for accessing microservices, My question is how we can automatically pass the token to the gateway for accessing microservices when the token is generated

    • @Javatechie
      @Javatechie  Год назад +2

      Your question is genuine but this automatically stuff needs to handle from UI not from the backend

    • @Akash-tq1ui
      @Akash-tq1ui Год назад

      @@Javatechie ok thank you!

  • @milanfaizal
    @milanfaizal 4 месяца назад +1

    Awesome video.

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

    Thank you so much great video. Just wanted to mention that oauth 2.1 removed the password grant type so a generated client_credentials would be a better option, and would like to see an updated video on that implementation.

  • @serigneibrahimafall6322
    @serigneibrahimafall6322 Год назад +1

    Wonderful and clearly explained. I want just to know how to access authentication info (principal for example) and how to do authorization if needed in microservices

    • @Javatechie
      @Javatechie  Год назад +1

      Please check the video below 👇 you will get an idea ruclips.net/video/qODoDq5_hAM/видео.html

    • @serigneibrahimafall6322
      @serigneibrahimafall6322 Год назад +1

      @@Javatechie Thanks a lot

  • @developersatish
    @developersatish Год назад +1

    love you bro you are helping so much

  • @IT_Ocean
    @IT_Ocean Год назад +1

    Nice detailed video..

  • @BrilliantMindsZw
    @BrilliantMindsZw Год назад

    well explained concepts, thank you

  • @RanuMishra-es1xf
    @RanuMishra-es1xf 7 месяцев назад

    keep it up good work.

  • @vaishali1843
    @vaishali1843 Год назад +1

    1:11:00 The rest call from gateway to auth service is not working. It is throwing an error saying cannot call from java.lang.illegalstateexception: block()/blockfirst()/blocklast() are blocking, which is not supported in thread reactor-http-nio-1. Please let me know if someone can help in this

  • @sadiulhakim7814
    @sadiulhakim7814 Год назад +5

    Hi sir! I am grateful for this tutorial. In this tutorial you have two client services, one gate way, one security service and you added security in Api Gate. I like the way you did it. But i need to move forward and add some Authorization. Suppose in swiggy service there are some end points what only admin can access and some end points normal user can access. How to apply this type of Authorization. Would you please make second part of this tutorial please? I am following this tutorial and trying to learn. I tried to implement the security directly in the API GATE-WAY service. But that was not easy because gate-way supports webflux not the web.

    • @TechWithAshishKumar
      @TechWithAshishKumar 9 месяцев назад +1

      make use of method level authorization and roles

    • @Javatechie
      @Javatechie  9 месяцев назад +2

      Yes I am still not finding any solution for this approach. Will check and update you

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

      @@Javatechie Thanks

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

      @@Javatechie I saw others using OAuth2 to solve this problem. KeyCloak is one of them.

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

      @@Javatechie Hey, I found your video helpful, however I wanted to inquire, did you find any solution for this approach?

  • @psudhakarreddy6548
    @psudhakarreddy6548 Год назад +2

    Thank you bro 🎉

  • @jahc007
    @jahc007 Год назад +1

    Thanks so much, it is the Best tutorial ive seen. I have one question. Hoy can I get the current loged user and roles from the servíces to make autorizations

    • @Javatechie
      @Javatechie  Год назад +1

      Please check the next video you will get logged in user info but regarding Authorization i am working on it

  • @anhtai5332
    @anhtai5332 Год назад +1

    Thank you so much. Can you do a video share how to config authorization with JWT in microservices ?

  • @rathan235
    @rathan235 Год назад +1

    Great job

  • @AvinashJ21
    @AvinashJ21 8 месяцев назад +1

    Thank you so much !!
    But how can we restrict direct access to individual microservices

    • @Javatechie
      @Javatechie  8 месяцев назад +1

      Only one way to avoid exposing them

  • @akumarsingh85
    @akumarsingh85 Год назад +1

    Just what I needed. 👍

  • @monikaraut5266
    @monikaraut5266 Год назад +2

    I am new to microservices & your videos helped me a lott🙌🙌 also can you please tell me, what should I use for role based authorisation in microservices.
    I am working on project which is a web portal for sanctioning government applications, It has user & admin as roles.
    Please guide🙌

    • @SmitBudgetalizer
      @SmitBudgetalizer Год назад

      I am working on jwt token microservices.
      How to logout user or expire token imediate?

  • @vamsikrishna8643
    @vamsikrishna8643 Год назад +1

    Nice work man, please implement the swegger this application which is used for api documentation, thanks in advance

  • @jenobpj5453
    @jenobpj5453 Год назад +1

    Thanks for you awesome videos which helped me to have good idea about micro services and I also have a doubt how to implement role based authorization at spring cloud gateway level?

    • @Javatechie
      @Javatechie  Год назад +1

      I am also doing R&D but not getting a proper solution on the Authorization part. I will update once i find the solution

    • @jenobpj5453
      @jenobpj5453 Год назад +2

      @@Javatechie Thank you

  • @vinodhreddy6227
    @vinodhreddy6227 Год назад +1

    👍 very nice 🙂

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

    Great Video! Need some more info : How do we avoid scattering secret? it can be stolen from code repo. How will the services be talking to each other? How will they get the token? Also how to enable HTTPS with proper handling of secrets.

  • @sidimohamedelhamed4419
    @sidimohamedelhamed4419 Год назад +1

    Thank you! how is it going if i have the UserData in an other service, is there any video with this case ?

    • @Javatechie
      @Javatechie  Год назад

      In our case also user data available in other services right

  • @MustafaCam-uv5fr
    @MustafaCam-uv5fr 6 месяцев назад +1

    great job Sr. does it come with new spring boot verison

  • @hkkabir2024
    @hkkabir2024 Год назад +2

    Hello sir. there is api still open for each microservice. like calling the order in it's own microservice with port like localhost: 8082 then api is open . if anyone can call that api wihout gateway and security then what is the usage of jwt ???

    • @Javatechie
      @Javatechie  Год назад +1

      Simple question can you please answer me how the user will know about the endpoints of your microservice ?

    • @hkkabir2024
      @hkkabir2024 Год назад +2

      @@Javatechie using url or somehow user know the endpoint or hacker know the endpoint. so the endpoints are not secured for each MS. you have to reconsider your code and try to figure out how to secure all the endpoints separately also

    • @Javatechie
      @Javatechie  Год назад +1

      @@hkkabir2024 no buddy it will be known by user only if you exposed it . If we are doing that then it's the wrong approach then what is the need for a gateway?

  • @Nexgenstory
    @Nexgenstory 6 месяцев назад +2

    Could you explain me : Client -> Security Service (GenerateToken) -> API Gateway -> MicroService1 (validate JWT) this flow is fine . What happen we request come directly to Client-> Microservice1 . How to check JWT for each endpoint.

    • @aishaprasad5555
      @aishaprasad5555 6 месяцев назад +3

      How to block each microservice endpoint to access??

    • @PeetCode
      @PeetCode 4 месяца назад +1

      The API Gateway is like the front door to your entire microservices setup. Every request coming in or going out passes through it. Think of it as a super-secure, load-balanced gatekeeper that makes sure only the right people and requests get in.
      Once you’ve validated requests at the gateway, there’s no need to worry about extra authentication for internal services since they aren’t directly accessible from the outside world. This setup keeps everything neat, secure, and centralized, so your microservices can focus on what they do best-without worrying about who’s knocking on the door.

  • @deepakbhagat3772
    @deepakbhagat3772 Год назад +1

    Thanks a lot. Jai jagarnath

  • @MedAliJelidi
    @MedAliJelidi Год назад +1

    Thank you! but i have a question! is this enough in term of security in my application and how can i add more security layers

    • @Javatechie
      @Javatechie  Год назад

      This is the way to implement in microservice but if you want more secure then better use 3rd party identity providers like okta or keyclok. I already uploaded a video of keyclok using microservice

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

    hi, i have two questions.
    1- what if we already have a user (or customer ) microservice?
    lets say we have a user microservice. i saved some user.
    if i want to do the process in the video what should i do? i need to create an entity like you did and save it to the auth service ? or can i rest call from user?
    2- how can we block the request which are not coming from gateway?
    you we can see on the video, if we send a request from gateway or direct to the service ( swiggy, auth .. ) we got the result. i guess we need to add a prefilter but how?
    thanks for video btw. you are really good person

  • @pvsree
    @pvsree Год назад +1

    Explained very well. My doubt is if there are 100s of microservices all the call will go through API gate way and the auth Service, how to handle API gateway or auth service failure ?

    • @Javatechie
      @Javatechie  Год назад

      You need to handle it through DR . In microservice world 🌎 no guarantee of 0 downtime

    • @pvsree
      @pvsree Год назад

      @@Javatechie thanks

  • @AnandSingh-ke4yy
    @AnandSingh-ke4yy Год назад +1

    Thanks a lot 🙏