How to integrate Java Spring Boot application with Auth0 using OIDC?

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

КОМЕНТАРІ •

  • @securityinaction1018
    @securityinaction1018  10 місяців тому +2

    Please subscribe to this channel for regular updates ua-cam.com/channels/EEayyyCrJO94FYlzF0NLTg.html
    Thank You for the support.

  • @smartys18
    @smartys18 6 місяців тому

    Thanks for tutorial man.A big thanks

    • @securityinaction1018
      @securityinaction1018  6 місяців тому

      Welcome!
      Please like, subscribe & share this video to support this channel !! Thanks in advance.

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

    Thank you so much for this video, this is the best Auth0 video I've seen so far. And thanks for showing a detailed and practical example.
    Question: assuming I want to send a jwt token to a react application after the user has authenticated just as in your video, how do I do this?

    • @securityinaction1018
      @securityinaction1018  8 місяців тому

      Glad it was helpful!
      Do you want to replace Java SpringBoot app with a React app? If so, I am sure React has some libraries for OIDC authentication similar to Java SpringBoot security libraries. I remember seeing something called NextAuth.js which supports OIDC for React apps.
      Please like, subscribe & share!! Thanks in advance.

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

    how can i get role of user ? for example i have created user : Jon, and his role is admin, how i can get this role ?

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

      You can refer this on how to add roles as a claim to the access token documentation auth0.com/docs/get-started/apis/enable-role-based-access-control-for-apis
      Please like, subscribe & share this video / channel !! Thanks in advance.

  • @afonsocasqueiro2135
    @afonsocasqueiro2135 7 місяців тому

    Hello, thanks for this its quite helpfull. I have a question, how should we do when we have several endpoints that required at least a user ID / email to be able to fetch some info from database? how should we make it work with auth0 to make sure requested user is logged in + matches the one logged in?
    Thanks

    • @securityinaction1018
      @securityinaction1018  7 місяців тому +1

      Userid or email is available in the ID token. I think you can customize the Auth0 access token to include these claims as well.
      The other question on "requested user is logged in + matches the one logged in" is not clear. Can you elaborate the scenario? Without authenticating in Auth0, the application cannot get the tokens like ID, Access token

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

    Thanks a lot for this videos 🙌 question how do you get access for the access and refresh token after this? I see their are setting a session cookie but I want the jwts

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

      I will work on that and post a video. Meanwhile, you can take a look at this documentation docs.spring.io/spring-security/reference/servlet/oauth2/client/authorization-grants.html#_using_the_access_token for some idea on how it works

  • @SoyJavero
    @SoyJavero 3 місяці тому

    Perfect vid, i wonder if this works with jdk21 and spring boot 3.2.3

    • @securityinaction1018
      @securityinaction1018  3 місяці тому +1

      I have not tried with these specific versions. But, I guess it should work as long as Spring didn't change any of those OIDC related configurations

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

    what is the purpose of step 7 ?