Spring Authorization Server : A simple Oauth2 setup

Поделиться
HTML-код
  • Опубликовано: 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

  • @brianduran913
    @brianduran913 7 месяцев назад +3

    Hello, how should I test it from postman?

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

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

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

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

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

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

  • @JerryLumontod
    @JerryLumontod 8 месяцев назад +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  8 месяцев назад

      yes you can refer this one - ruclips.net/video/IIFAiNMiywQ/видео.html

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

      @@h7sharma thank you brother, very useful information

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

      do you also have client credentials flow example?

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

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

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

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

    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

  • @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)
      ruclips.net/video/0C9S1yBSSO8/видео.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.