Easy OAuth with the Durable Spring Authorization Server

Поділитися
Вставка
  • Опубліковано 1 жов 2024

КОМЕНТАРІ • 18

  • @sureshchaudhari4465
    @sureshchaudhari4465 9 місяців тому +36

    Hello Josh I have been watching you from 2017 you are such a awesome contributor to spring community.

  • @buksvdl
    @buksvdl Рік тому +6

    Hi Josh, I have a similar key rotation but what I don't understand is why you would want the KID to stay the same? It appears in the Jwt and Identifies the Jwk to use for decryption. Resource servers hold the entire set and identifies the JWK to use based on the KID in the JWT header. On top of that it makes suspending the particular key and all issued/signed JWTs easy.

  • @alekosargyriou8214
    @alekosargyriou8214 10 місяців тому +7

    Both presentations on spring auth server was magnificent, loved the content and completely understood many concepts. Great job mate. I was wondering if there's any simpler approach regarding key rotation.

    • @coffeesoftware
      @coffeesoftware  10 місяців тому +1

      Hi - thanks ! Here’s an example github.com/spring-tips/spring-authorization-server/tree/main/authorization-server/src/main/java/bootiful/authorizationserver/keys basically this example stores keys (encrypted) in a JDBC DataSource and exposes a mechanism - an event - by which to reload the key 🔑

    • @alekosargyriou8214
      @alekosargyriou8214 10 місяців тому

      @@coffeesoftware thanks mate. Keep it up 💪🏻

  • @VK55837
    @VK55837 8 місяців тому +1

    Hi Josh, I hope you're doing good. I am beginner to cloud/oAuth.
    Have a question - Can we make cloud gateway introspect the opaque tokens, authorise the requests and forward only valid requests to the underlying microservices, without making each microservice a resource-server (say I have dozens of microservices under the gateway) and introspect the requests themselves?

  • @mtagab007
    @mtagab007 5 місяців тому +4

    thank you, ur very knowledable with this stuff, very helpful

  • @amol_
    @amol_ 4 місяці тому +1

    [Note]: I tried to use Session table file from classpath of Spring session jdbc that contains Char type so during session deserilization it failed so have to use character.

  • @dekeyserwilly
    @dekeyserwilly Рік тому +1

    Hi, Once again, you made a very informative video.
    Do you have any experience with Spring Authorization Server and Two-Factor Authentication.
    In what way can I implement this. Can you point me in the right direction?
    Thanks.

    • @coffeesoftware
      @coffeesoftware  Рік тому

      Thanks for watching ! We’ve got at least one prototype of a webauthn integration in spring security here github.com/rwinch/spring-security-webauthn

  • @andtif
    @andtif Рік тому

    Josh, sadly i missed your livestream but i was wondering if the client server you just set up handled the whole authorization grant flow automatically or am i misunderstanding something? Because normally you would have your React or Angular front end application handling the redirects, correct? Or in this case, could/would supplement your client application with e.g. Thymeleaf?

    • @onlyteo
      @onlyteo Рік тому +1

      When using the OAuth2 client login Spring Security will by default initiate the authorization code flow by redirecting the browser. Like you say, this works for server-side rendered web apps such as Thymeleaf based apps. For JavaScript frontends you need to handle redirects there. So what you typically do is to configure the exception handling in Spring Security to return a 401 status with the Location-header set to the redirect URL. Then when the JavaScript frontend gets a 401 from the API it just gets the URL from the header and redirects the browser.

    • @andtif
      @andtif Рік тому

      @@onlyteo I really appreciate your reply teo, thanks a lot. It is still much to take in but your comment has at least given me insight into how i will be able to solve it. You wouldn't by any change have a online resource for me to peek at which implements such an frontend application?

    • @coffeesoftware
      @coffeesoftware  Рік тому

      Hi checkout github.com/coffee-software-show/the-durable-spring-authorization-server

  • @omonullo
    @omonullo 10 місяців тому +1

    Awesome video. Like and subscribe. How to donate ?

    • @coffeesoftware
      @coffeesoftware  9 місяців тому +1

      No need to donate but check out start.spring.io :-)

  • @hkkabir2024
    @hkkabir2024 11 місяців тому +1

    it's very hard to watch your video , the code not visible properly. make it beginners friendly sir use IDE like eclipse will be easier for to understand also . i request
    you to make a complete video of spring security for all the microservices using gateway.