OAuth2 & Spring boot 3 & Social login | never been easier

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

КОМЕНТАРІ • 253

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

    Join the Micro Services course waiting list and get and get an exclusive *EARLY-BIRD discount*
    aliboucoding.ck.page/d0f9317e13

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

      i will buy your course if it using security for each service and using angular or reactjs for frontend

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

      @BoualiAli could you please share the information of follow up video for custom Authorization

  • @AnilKumarPrajapati-lv8fs
    @AnilKumarPrajapati-lv8fs 8 місяців тому +1

    Wow, what an incredibly helpful video on Spring Boot! 🌱👍 I really appreciate the clear explanations and step-by-step instructions provided.

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

    Thank you Ali I really appreciate you very much, stay blessed and God help you in all your endeavors. To find ones withh such a heart is rare

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

      Thank you so much brother
      JZK ❤️❤️

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

    Such a great video. Thank you! A lot of people would like to see how to implement oauth2 with a logic jwt, once you singed in with a google, front get the jwt token and invoke any methods with the jwt token. That is means logic with the jwt token will be not changed, but we added google oauth2. None of youtube videos about this issue…

    • @BoualiAli
      @BoualiAli  Рік тому +2

      I really have this video idea on my todo list. it is just a matter of time and it will be done ASAP

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

      @@BoualiAli Any update regarding this topic so far? Would be intersting to see it in combination with angular.

  • @zabialy2919
    @zabialy2919 Рік тому +9

    Great Video. It would be cool to see how the workflow looks when it is combined with a usual JWT Token authenticated with credentials.

    • @BoualiAli
      @BoualiAli  Рік тому +7

      Working on it already

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

      @@BoualiAli Btw. what is the theme you are using?

    • @BoualiAli
      @BoualiAli  Рік тому +2

      @@zabialy2919 it is the default theme of the new version of intellij

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

    Quick question:
    My app uses the /register route for registering users and requires following fields:
    name;
    dob;
    email;
    password;
    weight;
    goal;
    In one of your other videos You have for the /register fields only email and password.
    How would the registering with google work, if I need not only email and password information, but also other information about the user and stroing that in a database

    • @BoualiAli
      @BoualiAli  11 місяців тому

      You request them as scopes and you will receive them in the token

  • @jayjoshi1366
    @jayjoshi1366 9 місяців тому +2

    Awesome video on OAuth 2.0 implementation using social logins. I never thought that this would be so much easier, but I think you made it easy to understand for beginners to experienced and seniors as well. Your contribution is very much valuable and I hope you get more and more support in terms of Subscription + likes + shares + comments.

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

      Great to hear!

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

    Great video, thank you so much. How about Android applications? Where should I make configuration of Oauth2 in this case? In android application or as you have shown in Rest API ?

  • @vageeshanvageesh5583
    @vageeshanvageesh5583 Рік тому +10

    Great content, can you please guide us on using JWT oauth2 in the combination of Authorisation server and resource server

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

      This is what the video is about.authorization and resource server.
      Can you explain more?

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

      exactly

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

      @@BoualiAli In this session you explained very clearly and in depth about the oauth2 concepts and with an example of social login providers like google, facebook and github. What we are asking is, implemention of oauth2 using spring security without any external providers. At the high level
      1. One spring boot application (Act as a authorization server) - This application is responsible for validating the user credentials, generating the token (JWT or JDBC) and validating the token. Hence user details needed to be stored in our database not in third party providers.
      2. Another spring boot application (Act as a resource server) - This application may contains both secured and public endpoints. if user try to access the secured endpoints the request must be validated by our Authorization server application (We are sending the token as bearer in header). If a particular request is valid then we can access the secured endpoints otherwise un authorized. Hope i answered your question...

    • @BoualiAli
      @BoualiAli  Рік тому +3

      @@vageeshanvageesh5583 now it’s clear
      I will take note of that and prepare a course about it

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

      @@BoualiAli Thank you so much man, Im trying to implement this from past months but no luck, If you have some time please guide us on this.

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

    Thanks for the video. ​
    Do you have any plans to make video about using both jwt token authentication and identity provider (oauth2) together ?

    • @BoualiAli
      @BoualiAli  5 місяців тому +1

      keycloak video is coming next week

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

    this video is so simply for every one to understand..can you make more videos on this?

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

      Really happy you liked it
      Sure I will

  • @electricityaplicationtv8062
    @electricityaplicationtv8062 9 місяців тому

    Thank you for sharing. I have som questions: after I login by gmail successfully, How can I use the credentials to access other services in microservices? Do I need create new access token to return to frontend? how to generate access token after login successfully?

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

    Hi ali , appreciate your support .. can you update the method for the new spring security and adding it for jwt security ?
    Thank you

    • @BoualiAli
      @BoualiAli  5 місяців тому +1

      Updated

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

      ​@@BoualiAli
      In which video please ?😅

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

      @@kareemmosafi2117 check the spring security playlist

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

    Thanks. There is one more fantastic tutorial. Get a clear-cut idea of how it works flow-wise and implementation-wise. Can you help or provide some idea how to implement social media login with JWT

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

      I will try to cover it ASAP

  • @justDimoon
    @justDimoon 8 днів тому

    Can I use this dependency spring-boot-starter-oauth2-client for application with React client? Or It's just for requests from resource server and I need to use spring-boot-starter-oauth2-resource-server to interact with React client in that case? I will be happy to hear about it)) Thanks for the video)

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

    Nice video. But what if I have a custom token using Auth0, and I want to limit or bind oauth2 login page response to only a specific endpoint?
    I tried something like that using Spring Security 6.3.0, and I couldn't figure it out yet.
    /login to my custom JWT and /OAuth2 to be the receptor of the Google login page.
    When I used oauth2Login, the login page responds even in non-existent endpoints

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

    Thanks buddy and i like how your doing real solutions example which someone can apply to their personal project Next maybe we should host this app now

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

      Really happy you liked it

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

      @@BoualiAli when can we expect the combined oauth and jwt authentication??

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

    you are really awesome..Thank you for this valuable session..

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

      Glad you think so!

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

    Thank you. Very userful for beginners.

  • @boubacarbarry222
    @boubacarbarry222 Рік тому +2

    Thank you so much, i've learned a lot from you, may the Almighty reward you !
    The next thing i would like to learn from you is microservice and ci/cd approach.

    • @BoualiAli
      @BoualiAli  Рік тому +4

      I’m preparing a good thing about microservices
      Just still need some time to make it done ✅

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

    🤩 Video is awesome. i have few questions.
    ✋ What if our application uses all type of Auth. Email Password, Google, Facebook and Apple? and we also want to use the JWT for client & server communication?
    ✋ What about the mobile apps front end side to authenticate, mobile apps have different behaviour in Apple Authentication?
    🤌 Please make a video for these requirements. i really want to learn all of these.🤌

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

      I already planned this video but I just can't find enough time to do it.
      But I will so soon

  • @ngozikalu6938
    @ngozikalu6938 Рік тому +2

    Thanks always for your easy to understand videos.
    Quick question: I already have the jwt token authentication where a user signs up and the details are stored on my database, now i want to include the oauth2 authentication, where the user has an option to click on a sign in from google button. Would these two auth mechanisms be configured in thesame bean or they would have seperate beans for each? Also can I read the info of the user from google and save on my db?
    thanks in anticipation.

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

      You can have them both together.
      I’m working on a course that covers this two options with an angular frontend

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

      @@BoualiAli thanks a lot for responding. awaiting the course.

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

      @@BoualiAli would love to see this in Angular implementation too.

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

    Thank you so much
    your video helped me alot.

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

    I liked the video and the explanation.
    Question: How can we control the user wether he's authorized to get ressource or not using the social auth. providers (school case: admin has full access and normal user have standard access) ?
    Thanks for responding.

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

      This role base auth,
      You can save the user info locally and based on that you can assign him a role.
      You can also use your own oauth 2 server like keycloack and there you can assign roles

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

    9:41 amazing diagram to understand.

  • @bryanoconalhere
    @bryanoconalhere Рік тому +2

    Dear, I have gone through so many videos from paid courses as well but really didn't see any such tutorial. You really explained and demonstrated so easily. Salute to you. Keep it up.
    Thank you so much for such informative video.

    • @BoualiAli
      @BoualiAli  Рік тому +2

      I really appreciate and like your comment and feedback
      Glad it was helpful!

  • @aa-ip5vo
    @aa-ip5vo 6 місяців тому +1

    how can i add this to my current custom register login with jwt ! and what do i save in the db if i dont have pw for the user

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

      better use keycloak.
      check the video in my channel.
      I will release a new one how to integrate it with spring boot and angular

  • @AliZain-sb5jb
    @AliZain-sb5jb 6 місяців тому

    really appreciate your support sir, please make a vedio for login form with latest version of spring boot + jwt security+angular ui.. thanku

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

      Already uploaded

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

    COUPON Code: *EARLYBIRD20* => Spring Data J PA course: aliboucoding.com/p/the-full-guide-to-master-spring-boot-data-jpa

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

    Amazing sir, i follow your video about spring security. How can i add the capability login social media to Spring security with jwt before?

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

    thanks a lot ! this was very helpful but I have a couple of question, how can you use a custom login form for OAuth2 and how can you combine OAuth2 and JWT mechanism ? Thanks a lot in advance

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

    Thanks for the video it helped a lot .A question how can one customize the sign in page and thanks

    • @BoualiAli
      @BoualiAli  5 місяців тому +1

      Wait for the Keycloak video and you will never use another tool

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

    Hello @BoualiAli, I've been following your channel for while and i must say, you have one of the best springboot content on UA-cam. Well done. That being said, I have a question and I'd really appreciate your prompt response. How do I implement OAuth (in my case, Google and Facebook) together with traditional user login (username and password authentication)?

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

      Thanks, will do!

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

    Great video Ali. But I don't understand something, we say that resource server is our backend app, the client (the one who wants access to the resource uri) is the browser, and authorization server is GitHub. But what exactly is the role of the application we created in github? Why we had to create this app and what is the relation with this app and our spring boot backend app? Also I didn't quite catch the clientId- secretId role. Thanks

    • @BoualiAli
      @BoualiAli  11 місяців тому

      in order to be able to use Github as an ID provider

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

    @BoualiAli where is the follow up video for custom Application authentication using springBoot?

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

      check the book social network playlist

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

    I hit like before I even watched it .......knew it was gonna be great , and it was !!

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

      Best comment ever.
      You just made my day. Thanks a lot bro

  • @s3262301
    @s3262301 11 місяців тому

    Thank you very much! Is it possible to make a video for setting up Signle Sign On auth server (SSO) with social login?

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

    Question : at 29:00 , why you choose desktop app and not web application ?

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

    Very nice video. But what if you have for example react app on frontend/client that has regular form login with also social login.

    • @BoualiAli
      @BoualiAli  Рік тому +3

      This is the next Oauth 2.0 video
      How to implement fullstack login

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

      @@BoualiAli looking forward to it!

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

      @@BoualiAli Also looking forward to that!

  • @vineethkumar9806
    @vineethkumar9806 9 місяців тому

    I must say Awesome and you cleared all my problems you deserve the all likes ,subscriptions and shares and reach the great heights in the future so coming to the point will you explain how to stay update of the technologies and for every 6 months spring team changing the methods and a lot so my question is how are you able to stay update with that if you don't mind will you explain this please brother

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

      I really appreciate the feedback

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

    Could you please show different ways of applying or using of "rememberMe" in spring boot 3 (spring security 6)?

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

      I will make a video for that

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

    Nice video !! can you create a video about web security . a kind of road map or best practises a devloper can follow to make a safe application from different type of attacks

    • @BoualiAli
      @BoualiAli  Рік тому +4

      I will create soon a video about software quality and best practices. I will also consider a video about security

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

    I have to add this in my existing project , so when I add the dependency for oauth resource server in my Pom file it shows not found. Can you tell me how can I add ?

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

    Is it possible to build a service to support multiple external authorization services and then the service itself acts as an authorization service so that there is always only one auth server for the multiple oAuth clients?

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

    Nice one... Can you please create video on sign up with apple

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

      It is the same concept

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

    Hi, can you provide any solution to integrate OAuth2.0 with existing JWT?

  • @MiguelSilva-ur9xd
    @MiguelSilva-ur9xd 9 місяців тому

    when i using google provider. why does it show me "[invalid_id_token] An error occurred while attempting to decode the Jwt: The ID Token contains invalid claims: {iat=date}" ?

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

    Thanks for this video. If its for the first time that client is visiting this endpoint and needs to have a user account, can we create a user account with OAuth2 login? And if so, how to do that?

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

      The user should create an account on (Github, facebook, ...) and the use it.
      Your application should not really care about that. It is totally up to the client to do that

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

    Thank you so much for this video.

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

    When can we expect a video with both OAuth2 and JWT Token? I'm stuck with this part and I can't seem to find a way to solve it

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

      I will try to record it ASAP

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

      @@BoualiAli Thank you for your time! Can't wait!

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

    @BoualiAli Thank you for this great video. I want to ask that is there a way this can be used to the app itself(Like the JWT) without going to the third-party app like facebook or github? Please tell me how.

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

      If I correctly understood you question, YES it is possible but you need to implement your own Auth server / resource server

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

    Where are you creating the front end page in this one,can you please explain it

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

      That page is automatically generated by spring

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

    zo'r chiqibti👍👍👍👍

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

    Great tutorial, what about open id connect? how to do authentication?

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

      I need to try that first and then I will let you know

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

    You are great teacher.

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

    Excellent video! Thank you!

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

      Glad you liked it!

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

    how to configure our own oauth (other than Google, Github, Facebook)? Did you make a video about that? thanks

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

      I will create one about keycloack soon

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

    excellent as always !
    can we use DaoAuthenticationProvider with Oauth 2 ? i mean 2 types of authentication

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

      The Oauth 2 is jwt based auth too. But the users are not stored on your side but on the auth provider side.
      I will create soon a video about keycloak and you will understand the oauth2 process much better

  • @mallikarjunareddynimmakaya4120

    Thank you Ali for neat explanation.
    Your intellij setup is looking good, may I know which theme and icons pack are you using?

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

      Thanks for the feedback.
      This is new UI theme from the latest version of intellij

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

    Thanks for sharing Ali

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

    Hello Ali. Thanks for this video. But I have a question. I want to take google users info for example mail, name, surname etc. after this part. How can I do this?

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

      I'm already working on it.
      It will be released really soon

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

    I can't integrate OAuth2 in a Rest api secured with JWT.

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

    Thank you So much , Like before watching

  • @adedayoabdulahi1399
    @adedayoabdulahi1399 11 місяців тому

    Linking the link in the description lol Thanks Alibou..

    • @BoualiAli
      @BoualiAli  11 місяців тому

      Happy you liked it!

  • @闲话加拿大小新
    @闲话加拿大小新 Рік тому +1

    wonderful video. Best teacher for spring boot. @Bouali Ali could you please make video for gateway + authentication-service(jwt) + other+services.
    means the user will ask other services through gateway.
    but gateway will allow or block the request by valider the token from authentication-service
    i use RestTemplate inside gateway to request authentication-service, but it does not work.

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

    Well explained. Thank you Ali

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

    Great content aloulou, thank you so much bro

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

    Thanks a lot boss. Your courses are really helpfull to me.

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

      Thanks
      Really happy to know that

  • @aa-ip5vo
    @aa-ip5vo 6 місяців тому

    Hello i have register login with jwt now i want to add also social login can i make the user login and generate for him jwt token after successful login? and in the db what do i save if i dont have password since social login doesnt require pw hope you help and thanks.

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

    Currently I'm using spring boot 2 version, Is this tutorial applicable for me?

  • @ЕвгенийВасильев-щ7в

    When I creating app in google cloud, it asking redirect-uri. It should end with login/oauth2/code/google and for github it should end with login/oauth2/code/github

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

      The redirect URI is where do you want to be redirected after a successfull login

    • @ЕвгенийВасильев-щ7в
      @ЕвгенийВасильев-щ7в Рік тому

      @@BoualiAli yes, also google server send a token to this uri. And for normal recieve this token by spring ouath2 module, it should come exactly to the login/oauth2/code/google uri

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

    Thank you so much.
    HttpSecurity.oauth2Login() is deprecated and marked for deletion. How to change the implementation?

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

      I will create new videos to show how to upgrade to Spring boot 3.1 for both WT and OAuth2

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

      @@BoualiAli Thank you so much for all the content you are providing.

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

      replace .oauth2Login() with .oauth2Login(oauth -> {})
      if you want to add more logic you can do it inside the lambda expression ! hope this helps !

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

      Hi @khalilbouali3480, thank you so much for your answer! I really appreciate your help and guidance. Your explanation was clear and easy to understand. I'm grateful for your support. Thanks again!

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

    How can i make so that a frontend application can access the authorized backend data? I.e we authorize through backend login but then show this data in our front end?

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

      Just redirect the frontend to the login url

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

      @@BoualiAli so for example I have a end point @3000 for front end and auth page @8000 local host I redirect and login. It gets authorized for me but not the front end point @3000 I'm not sure if I'm explaining it that great and there may be a gap in my knowledge but that's the issue I'm facing

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

    Thank you for explanation

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

    Hey Bouali, you are really doing a great work here.

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

    is there any difference between making spring boot project on spring initializr website and doing that inside intellij? In intellij we can also use spring initializr

    • @BoualiAli
      @BoualiAli  11 місяців тому

      No difference. Both are calling the same API

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

    i cant use the .Oauth2Login() in the security filter. please is there a new way to use Oauth in spring?

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

      check today's video for a detailed answer

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

    Excellent explanation 🙌🏻 Keep videos like this coming 🙌🏻

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

      Absolutely
      Thank you for the feedback

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

    Please do a .video on Spring Security and Azure SSO.

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

    Great job 👍👍

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

    Subscribed -:) awesome content

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

      Happy to have you here 😁

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

    in oauth 2.0 open id can we use along with jwt token or is it must be a seperate? so if we might be use jwt + oauth2.0 there is must be another configuration? can you refer me? thank you in advance

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

      you can use both together

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

    Hello. Thanks for the video. I clone this project in my intellij and, with my google account, request loop on google oauth authentication and never give the controller answer "Hell OAuth2". It's a problem of ... something but what ? console app config ?.

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

      did you change the credentials?

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

      @@BoualiAli Sorry do not answer before. I must have made a mistake but I don't know what mistake. I started from scratch and it worked.

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

    Thank you so much for this video

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

      You're so welcome!

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

    thank you so muchh

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

    Hi @Bouali Ali, this video is so informative and well explained each and every step, Thank you for making this video. Could you please make a video where linkedin and twitter used as social login platform instead of github and google that can be very useful for us. Please make a video on this topic, request from your subscriber

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

      Really happy you liked it
      Already preparing the content

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

      @@BoualiAli sound awesome ❤️

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

    can we use oauth2 with authorization code grant type with native mobile app
    if yes should it make sense that mobile app redirect us to the authorization server login page?

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

      Yes you can.
      Yes it makes sense (already exists on many mobile apps)

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

    great content

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

    Can you add logout feature (say from react by using fetch)

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

    Good content

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

    Great Content 📈

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

    Thanks a lot, you are really inspiring and motivating me with your sharing and guidance.

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

      Thanks a lot bro.
      You’re my motivation

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

    Do you know how to secure resource server with these two auth providers? Concretely, how to enable client to choose which one provider he wants to use to login and get data from resource server?

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

      Can you give more insights , i didn’t 💯% understand your question

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

      @@BoualiAli I have 3 separated projects: client , authorization server and resource server. To explain a bit better that architecture in real use-case, resource server is like backend app, client is some front app, and authorization server is to authenticate and authorize end user. To enable client to get data from resource server user has to login via auth server. Have you ever tried to implement authorization with multiple auth providers (like Github or Google or custom authorization server in my case)?

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

      @@pad5724 i will make a video on how to implement front end and backend using oauth 2.0
      In the frontend you will be able to choose which provider to use to login…

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

      @@BoualiAli ok, thank you

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

    Perfect video

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

    Hi @BoualiAli, I need some guidance on implementing the below scenario -
    Assume there are 4 controllers in the application currently and there will be new controllers added in future. Each service may have multiple operations - read, edit, create, delete. I want read to be provided to specific role.
    Also, assume there are 3 roles now - Admin, manager and user. There will be additional roles that will be created in future.
    I want to define Role, Service and operation in DB table. Based on this combination the authorization should be provided to users.
     User will have a Role
     Role will have Service.operation
    Can you please suggest me the best approach to implement this requirement.

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

      Check the Roles & Permissions video and you will get your answer

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

    this code will not work with spring 2.7.1????

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

      It should work. But take into account some changes maybe
      I never tried using 2.7

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

    when i try to call the api from postman with access token it returns me the google login page (I have used google to login, when i used in browser it works fine ), can you help me with this issue

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

      When using postman, in the auth tab, select oauth2 and then you need to configure the connection and then it will generate the token and you will be able to use to query the backend

    • @QuocNguyen-cf2dw
      @QuocNguyen-cf2dw Рік тому

      @@BoualiAli I try doing with your suggestion, but I can't use the gererate token to cal my API. It's always return github login page. Please help me explain about that. Thanks

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

      @@QuocNguyen-cf2dw you need to generate a token first

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

    Naxt: Please make a video on If someone register in our app using social account then how that user details will be stored in our database.

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

    Proud of you brother ;)

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

      Thank you so much brother. Happy to know that you still check on me

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

    please create a video on OAuth 2.0 using Azure active directory using Graph API