Spring Authorization Server : A simple Oauth2 setup

Поділитися
Вставка
  • Опубліковано 16 лис 2023
  • 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/sprin...

КОМЕНТАРІ • 23

  • @gmgunesoglu
    @gmgunesoglu 2 місяці тому

    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.

  • @navaneetbadami4031
    @navaneetbadami4031 Місяць тому

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

  • @tlprasad
    @tlprasad 2 місяці тому +1

    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  2 місяці тому

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

  • @sravanvedala7811
    @sravanvedala7811 4 місяці тому

    Very very good demo.

  • @brianduran913
    @brianduran913 4 місяці тому +3

    Hello, how should I test it from postman?

  • @GurcharanSingh-qi4ww
    @GurcharanSingh-qi4ww 4 місяці тому

    Thanks. It helped.

  • @samallangi
    @samallangi 2 місяці тому

    Very good bro. It Helped

  • @naveengaddam-bv4vp
    @naveengaddam-bv4vp 6 місяців тому

    Good videos but please explain about role based authorition with frontend

  • @krishnareddy1469
    @krishnareddy1469 5 місяців тому

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

  • @hackstreet781
    @hackstreet781 2 місяці тому

    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.

  • @user-sm2qj1ms8n
    @user-sm2qj1ms8n 5 місяців тому +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  5 місяців тому

      yes you can refer this one - ua-cam.com/video/IIFAiNMiywQ/v-deo.html

    • @user-sm2qj1ms8n
      @user-sm2qj1ms8n 5 місяців тому

      @@h7sharma thank you brother, very useful information

    • @user-sm2qj1ms8n
      @user-sm2qj1ms8n 5 місяців тому +1

      do you also have client credentials flow example?

  • @yichenbai-ig5pn
    @yichenbai-ig5pn 2 місяці тому

    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  2 місяці тому

      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 3 місяці тому

    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  3 місяці тому

      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)
      ua-cam.com/video/0C9S1yBSSO8/v-deo.html

    • @thetrilbies1
      @thetrilbies1 2 місяці тому

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

  • @AnkitKumar-ow6fg
    @AnkitKumar-ow6fg 5 місяців тому

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