Spring Authorization Server : A simple Oauth2 setup

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024
  • 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/him...

ความคิดเห็น • 26

  • @praveenak-u5t
    @praveenak-u5t หลายเดือนก่อน

    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

  • @brianduran913
    @brianduran913 7 หลายเดือนก่อน +3

    Hello, how should I test it from postman?

  • @ElmshornBoy
    @ElmshornBoy 2 หลายเดือนก่อน

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

  • @tlprasad
    @tlprasad 5 หลายเดือนก่อน +2

    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  5 หลายเดือนก่อน

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

  • @memsofgamers9479
    @memsofgamers9479 2 หลายเดือนก่อน

    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

  • @JerryLumontod
    @JerryLumontod 9 หลายเดือนก่อน +1

    is it possible to store user and client in a database (like MySQL) and make CRUD from it (database) too? thanks anyways for this example, very helpful

    • @h7sharma
      @h7sharma  9 หลายเดือนก่อน

      yes you can refer this one - th-cam.com/video/IIFAiNMiywQ/w-d-xo.html

    • @JerryLumontod
      @JerryLumontod 8 หลายเดือนก่อน

      @@h7sharma thank you brother, very useful information

    • @JerryLumontod
      @JerryLumontod 8 หลายเดือนก่อน +1

      do you also have client credentials flow example?

  • @hackstreet781
    @hackstreet781 5 หลายเดือนก่อน

    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.

  • @krishnareddy1469
    @krishnareddy1469 8 หลายเดือนก่อน

    Can you do one video for oauth 2 client credential token with Angular app -> resource server -> Authorization server.

  • @yichenbai-ig5pn
    @yichenbai-ig5pn 6 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

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

  • @gmgunesoglu
    @gmgunesoglu 5 หลายเดือนก่อน

    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.

  • @thetrilbies1
    @thetrilbies1 6 หลายเดือนก่อน

    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  6 หลายเดือนก่อน

      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)
      th-cam.com/video/0C9S1yBSSO8/w-d-xo.html

    • @thetrilbies1
      @thetrilbies1 5 หลายเดือนก่อน

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

  • @naveengaddam-bv4vp
    @naveengaddam-bv4vp 9 หลายเดือนก่อน

    Good videos but please explain about role based authorition with frontend

  • @samallangi
    @samallangi 5 หลายเดือนก่อน

    Very good bro. It Helped

  • @navaneetbadami4031
    @navaneetbadami4031 4 หลายเดือนก่อน

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

    • @h7sharma
      @h7sharma  4 หลายเดือนก่อน

      Glad it helped!

  • @GurcharanSingh-qi4ww
    @GurcharanSingh-qi4ww 7 หลายเดือนก่อน

    Thanks. It helped.

  • @sravanvedala7811
    @sravanvedala7811 7 หลายเดือนก่อน

    Very very good demo.

  • @AnkitKumar-ow6fg
    @AnkitKumar-ow6fg 8 หลายเดือนก่อน

    Don't make videos bro. You have made it more complicated than it already was.